class Markd::Node

Defined in:

markd/node.cr

Constant 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

Constructor Detail

def self.new(type : Markd::Node::Type) #

[View source]

Instance Method Detail

def append_child(child : Node) #

[View source]
def data #

[View source]
def data=(data : Nil | Hash(String, Bool | Int32 | String)) #

[View source]
def fence_char : String #

[View source]
def fence_char=(fence_char : String) #

[View source]
def fence_language : String #

[View source]
def fence_language=(fence_language : String) #

[View source]
def fence_length : Int32 #

[View source]
def fence_length=(fence_length : Int32) #

[View source]
def fence_offset : Int32 #

[View source]
def fence_offset=(fence_offset : Int32) #

[View source]
def fenced=(fenced : Bool) #

[View source]
def fenced? : Bool #

[View source]
def first_child : Node | Nil #

def first_child=(first_child : Node | Nil) #

[View source]
def first_child? : Node | Nil | Nil #

def insert_after(sibling : Node) #

[View source]
def last_child : Node | Nil #

def last_child=(last_child : Node | Nil) #

[View source]
def last_child? : Node | Nil | Nil #

def last_line_blank=(last_line_blank : Bool) #

[View source]
def last_line_blank? : Bool #

[View source]
def last_line_checked=(last_line_checked : Bool) #

[View source]
def last_line_checked? : Bool #

[View source]
def next : Node | Nil #

def next=(next __arg0 : Node | Nil) #

[View source]
def next? : Node | Nil | Nil #

def open=(open : Bool) #

[View source]
def open? : Bool #

[View source]
def parent : Node | Nil #

def parent=(parent : Node | Nil) #

[View source]
def parent? : Node | Nil | Nil #

def prev : Node | Nil #

def prev=(prev : Node | Nil) #

[View source]
def prev? : Node | Nil | Nil #

def source_pos : {{Int32, Int32}, {Int32, Int32}} #

[View source]
def source_pos=(source_pos : Tuple(Tuple(Int32, Int32), Tuple(Int32, Int32))) #

[View source]
def text : String #

[View source]
def text=(text : String) #

[View source]
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>

[View source]
def type : Type #

[View source]
def type=(type : Type) #

[View source]
def unlink #

[View source]
def walker #

[View source]