class StrictYAML::Document
- StrictYAML::Document
- Reference
- Object
Defined in:
strict-yaml/document.crConstructors
Instance Method Summary
- #core_type : CoreType
- #edit(& : Editor -> _) : Nil
- #nodes : Array(Node)
- #preserved? : Bool
- #to_any : Any
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #version : String
Instance methods inherited from class Object
to_yaml(io : IO) : Nilto_yaml : String to_yaml
Class methods inherited from class Object
from_yaml(source : String)from_yaml(value : StrictYAML::Any) from_yaml
Constructor Detail
Instance Method Detail
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>