struct CON::Builder

Overview

The builder advantage efficiency over safety. It is relativaly unsafe to use it as-is, using it through Object#to_con is often a better option.

Defined in:

builder.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Value

==(other : CON::Any) ==

Instance methods inherited from class Object

===(other : CON::Any) ===, from_con(con : String | IO) from_con, to_con(io : IO)
to_con
to_con
, to_pretty_con(indent : String = " ")
to_pretty_con(io : IO, indent : String = " ")
to_pretty_con

Constructor Detail

def self.new(io : IO, indent : String | Nil = nil) #

[View source]

Instance Method Detail

def array(key : String, &) #

[View source]
def array(&) #

[View source]
def bool(bool : Bool) #

[View source]
def field(key, value) #

[View source]
def float(float : Float) #

[View source]
def hash(key : String, &) #

[View source]
def hash(new_line : Bool = true, &) #

[View source]
def integer(integer : Int) #

[View source]
def max_nesting : Int32 #

[View source]
def max_nesting=(max_nesting : Int32) #

[View source]
def newline : Bool #

[View source]
def nil #

[View source]
def string(string : String) #

[View source]
def value(value) #

[View source]