class Markd::Node
- Markd::Node
- Reference
- Object
Defined in:
markd/node.crConstant Summary
-
CONTAINER_TYPES =
{Type::Document, Type::Paragraph, Type::Strong, Type::Emphasis, Type::Link, Type::Image, Type::Heading, Type::List, Type::Item, Type::BlockQuote, Type::CustomInLine, Type::CustomBlock}
Constructors
Instance Method Summary
- #append_child(child : Node)
- #data
- #data=(data : Nil | Hash(String, Bool | Int32 | String))
- #fence_char : String
- #fence_char=(fence_char : String)
- #fence_language : String
- #fence_language=(fence_language : String)
- #fence_length : Int32
- #fence_length=(fence_length : Int32)
- #fence_offset : Int32
- #fence_offset=(fence_offset : Int32)
- #fenced=(fenced : Bool)
- #fenced? : Bool
- #first_child : Node | Nil
- #first_child=(first_child : Node | Nil)
- #first_child? : Node | Nil | Nil
- #insert_after(sibling : Node)
- #last_child : Node | Nil
- #last_child=(last_child : Node | Nil)
- #last_child? : Node | Nil | Nil
- #last_line_blank=(last_line_blank : Bool)
- #last_line_blank? : Bool
- #last_line_checked=(last_line_checked : Bool)
- #last_line_checked? : Bool
- #next : Node | Nil
- #next=(next __arg0 : Node | Nil)
- #next? : Node | Nil | Nil
- #open=(open : Bool)
- #open? : Bool
- #parent : Node | Nil
- #parent=(parent : Node | Nil)
- #parent? : Node | Nil | Nil
- #prev : Node | Nil
- #prev=(prev : Node | Nil)
- #prev? : Node | Nil | Nil
- #source_pos : {{Int32, Int32}, {Int32, Int32}}
- #source_pos=(source_pos : Tuple(Tuple(Int32, Int32), Tuple(Int32, Int32)))
- #text : String
- #text=(text : String)
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #type : Type
- #type=(type : Type)
- #unlink
- #walker
Constructor Detail
Instance Method Detail
def to_s(io : IO)
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>