class KDL::Builder
Defined in:
kdl/builder.crConstructors
Instance Method Summary
- #arg(value : Value::Type, *, type : String | Nil = nil, comment : String | Nil = nil)
- #document(*, comment : String | Nil = nil, &)
- #node(name : String, *, type : String | Nil = nil, comment : String | Nil = nil, &)
-
#node(name : String, *positional : Value::Type | Hash(String, Value::Type), type : String | Nil = nil, comment : String | Nil = nil)
Name and shorthand positional arguments + properties
-
#node(name : String, *, type : String | Nil = nil, comment : String | Nil = nil)
Node name only
-
#node(name : String, *positional : Value::Type | Hash(String, Value::Type), type : String | Nil = nil, comment : String | Nil = nil, **properties : Value::Type)
Name and shorthand positional arguments + properties with named tuple properties
-
#node(name : String, *, type : String | Nil = nil, comment : String | Nil = nil, **properties : Value::Type)
Name and named tuple properties
- #prop(key : String | Symbol, value : Value::Type, *, type : String | Nil = nil, comment : String | Nil = nil)
Instance methods inherited from class Reference
==(other : KDL::Value)
==
Instance methods inherited from class Object
===(other : KDL::Value)
===
Constructor Detail
Instance Method Detail
def node(name : String, *positional : Value::Type | Hash(String, Value::Type), type : String | Nil = nil, comment : String | Nil = nil)
#
Name and shorthand positional arguments + properties
Node name only
def node(name : String, *positional : Value::Type | Hash(String, Value::Type), type : String | Nil = nil, comment : String | Nil = nil, **properties : Value::Type)
#
Name and shorthand positional arguments + properties with named tuple properties
def node(name : String, *, type : String | Nil = nil, comment : String | Nil = nil, **properties : Value::Type)
#
Name and named tuple properties
def prop(key : String | Symbol, value : Value::Type, *, type : String | Nil = nil, comment : String | Nil = nil)
#