KDL::Node
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)
Sourcenew(name : String, *, arguments = [] of KDL::Value, properties = {} of String => KDL::Value, children : Array(KDL::Node), type : String | Nil = nil, comment : String | Nil = nil)
SourceInstance methods
arg(key) : Value::Type
Sourcearg
Sourcearg?(key) : Value::Type | Nil
Sourcearg?
Sourceargs
Sourcearguments
Sourceas_type(type)
Sourcechildren
Sourcechildren=(children : KDL::Document)
Sourcechildren?
Sourcecomment
Sourcedash_nodes
Sourcedash_vals
Sourcedash_vals?
Sourcename
Sourceproperties
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
Source