class KDL::Builder

Defined in:

kdl/builder.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 #

[View source]

Instance Method Detail

def arg(value : Value::Type, *, type : String | Nil = nil, comment : String | Nil = nil) #

[View source]
def document(*, comment : String | Nil = nil, &) #

[View source]
def node(name : String, *, type : String | Nil = nil, comment : String | Nil = nil, &) #

[View source]
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


[View source]
def node(name : String, *, type : String | Nil = nil, comment : String | Nil = nil) #

Node name only


[View source]
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


[View source]
def node(name : String, *, type : String | Nil = nil, comment : String | Nil = nil, **properties : Value::Type) #

Name and named tuple properties


[View source]
def prop(key : String | Symbol, value : Value::Type, *, type : String | Nil = nil, comment : String | Nil = nil) #

[View source]