class KDL::Node

Defined in:

kdl/node.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(name : String, *, arguments : Array(KDL::Value) = [] of KDL::Value, properties : Hash(String, KDL::Value) = {} of String => KDL::Value, children : Array(KDL::Node) = [] of Node, type : String | Nil = nil) #

[View source]

Instance Method Detail

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

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

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


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

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

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

[View source]
def []?(index : Int) : Value::Type | Nil #

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

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

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

[View source]
def arg : Value::Type #

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

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

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

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

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

[View source]
def arguments : Array(KDL::Value) #

[View source]
def arguments=(arguments : Array(KDL::Value)) #

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

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

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

[View source]
def child?(index : Int) : Node | Nil #

[View source]
def child?(key : String) : Node | Nil #

[View source]
def child?(key : Symbol) : Node | Nil #

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

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

[View source]
def dash_nodes #

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

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

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

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

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

See Object#hash(hasher)


[View source]
def name : String #

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

[View source]
def properties : Hash(String, KDL::Value) #

[View source]
def properties=(properties : Hash(String, KDL::Value)) #

[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 : String? #

[View source]
def type=(type : Nil | String) #

[View source]