class

KDL::Node

Inherits Reference < Object

Constructors

new(name : String, *, arguments : Array(KDL::Value) = [] of KDL::Value, properties : Hash(String, KDL::Value) = {} of String => KDL::Value, children : KDL::Document = KDL::Document.new, type : String | Nil = nil, comment : String | Nil = nil)
Source
new(name : String, *, arguments = [] of KDL::Value, properties = {} of String => KDL::Value, children : Array(KDL::Node), type : String | Nil = nil, comment : String | Nil = nil)
Source

Instance methods

==(other : KDL::Node)
Source
==(other)

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

Source
[](index : Int) : Value::Type
Source
[](key : String) : Value::Type
Source
[](key : Symbol) : Value::Type
Source
[]?(index : Int) : Value::Type | Nil
Source
[]?(key : String) : Value::Type | Nil
Source
[]?(key : Symbol) : Value::Type | Nil
Source
arg(key) : Value::Type
Source
arg?(key) : Value::Type | Nil
Source
arg?
Source
args(key) : Array(Value::Type)
Source
args
Source
args?(key) : Array(Value::Type) | Nil
Source
arguments
Source
arguments=(arguments : Array(KDL::Value))
Source
as_type(type)
Source
child(index : Int) : Node
Source
child(key : String) : Node
Source
child(key : Symbol) : Node
Source
child?(index : Int) : Node | Nil
Source
child?(key : String) : Node | Nil
Source
child?(key : Symbol) : Node | Nil
Source
children
Source
children=(children : KDL::Document)
Source
children?
Source
comment
Source
comment=(comment : Nil | String)
Source
dash_nodes
Source
dash_vals(key) : Array(Value::Type)
Source
dash_vals
Source
dash_vals?(key) : Array(Value::Type) | Nil
Source
dash_vals?
Source
hash(hasher)

See Object#hash(hasher)

Source
name
Source
name=(name : String)
Source
properties
Source
properties=(properties : Hash(String, KDL::Value))
Source
to_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>
Source
type
Source
type=(type : Nil | String)
Source