Markd::Node
Inherits Reference < Object
Constants
CONTAINER_TYPES = {Type::BlockQuote, Type::Alert, Type::CustomBlock, Type::CustomInLine, Type::Document, Type::Emphasis, Type::FootnoteDefinition, Type::Heading, Type::Image, Type::Item, Type::Link, Type::List, Type::Paragraph, Type::Strikethrough, Type::Strong, Type::Table, Type::TableCell, Type::TableRow}
Constructors
new(type : Markd::Node::Type)
SourceInstance methods
append_child(child : Node)
Sourcedata
Sourcedata=(data : Nil | Hash(String, Bool | Int32 | String))
Sourcefence_char
Sourcefence_char=(fence_char : String)
Sourcefence_language
Sourcefence_language=(fence_language : String)
Sourcefence_length
Sourcefence_length=(fence_length : Int32)
Sourcefence_offset
Sourcefence_offset=(fence_offset : Int32)
Sourcefenced=(fenced : Bool)
Sourcefenced?
Sourcefirst_child
Sourcefirst_child=(first_child : Node | Nil)
Sourcefirst_child?
Sourceinsert_after(sibling : Node)
Sourcelast_child
Sourcelast_child=(last_child : Node | Nil)
Sourcelast_child?
Sourcelast_line_blank=(last_line_blank : Bool)
Sourcelast_line_blank?
Sourcelast_line_checked=(last_line_checked : Bool)
Sourcelast_line_checked?
Sourcenext
Sourcenext=(next __arg0 : Node | Nil)
Sourcenext?
Sourceopen=(open : Bool)
Sourceopen?
Sourceparent
Sourceparent=(parent : Node | Nil)
Sourceparent?
Sourceprev
Sourceprev=(prev : Node | Nil)
Sourceprev?
Sourcesource_pos
Sourcesource_pos=(source_pos : Tuple(Tuple(Int32, Int32), Tuple(Int32, Int32)))
Sourcetext
Sourcetext=(text : String)
Sourceto_s(io : IO)
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>
type
Sourcetype=(type : Type)
Sourceunlink
Sourcewalker
Source