class KDL::Document
Included Modules
- Enumerable(KDL::Node)
Defined in:
kdl/document.crConstructors
Instance Method Summary
- #<<(node)
- #==(other : KDL::Document)
-
#==(other)
Returns
false
(other can only be aValue
here). - #[](index : Int)
- #[](key : String)
- #[](key : Symbol)
- #[]?(index : Int)
- #[]?(key : String)
- #[]?(key : Symbol)
- #arg(key) : Value::Type
- #arg?(key) : Value::Type | Nil
- #comment : String?
- #comment=(comment : Nil | String)
- #dash_vals(key) : Array(Value::Type)
- #dash_vals?(key) : Array(Value::Type) | Nil
-
#each(&)
Must yield this collection's elements to the block.
-
#empty?
Returns
true
ifself
does not contain any element. -
#hash(hasher)
See
Object#hash(hasher)
- #nodes : Array(KDL::Node)
- #nodes=(nodes : Array(KDL::Node))
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
Instance methods inherited from class Reference
==(other : KDL::Value)
==
Instance methods inherited from class Object
===(other : KDL::Value)
===
Constructor Detail
Instance Method Detail
def ==(other)
#
def each(&)
#
Description copied from module Enumerable(KDL::Node)
Must yield this collection's elements to the block.
def empty?
#
Description copied from module Enumerable(KDL::Node)
Returns true
if self
does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?
returns the inverse.