class KDL::Document

Defined in:

kdl/document.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : KDL::Value) ==

Instance methods inherited from class Object

===(other : KDL::Value) ===

Constructor Detail

def self.new(nodes : Array(KDL::Node) = [] of Node) #

[View source]

Instance Method Detail

def ==(other : KDL::Document) #

[View source]
def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def [](index : Int) #

[View source]
def [](key : String) #

[View source]
def [](key : Symbol) #

[View source]
def []?(index : Int) #

[View source]
def []?(key : String) #

[View source]
def []?(key : Symbol) #

[View source]
def arg(key) : Value::Type #

[View source]
def arg?(key) : Value::Type | Nil #

[View source]
def dash_vals(key) : Array(Value::Type) #

[View source]
def dash_vals?(key) : Array(Value::Type) | Nil #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


[View source]
def nodes : Array(KDL::Node) #

[View source]
def nodes=(nodes : Array(KDL::Node)) #

[View source]
def to_s(io : IO) : Nil #
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]