class GeoJSON::Coordinates::CoordinateTree::Root
Overview
A CoordinateTree::Root is the root node of a CoordinateTree structure.
It has children but no parent or leaf value.
Defined in:
geojson/coordinates/coordinate_tree.crConstructors
-
.new(parser : JSON::PullParser)
Creates a
CoordinateTreefrom the givenJSON::PullParser.
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#each(*args, **options)
Iterates over this Root's children.
-
#each(*args, **options, &)
Iterates over this Root's children.
-
#hash(hasher)
See
Object#hash(hasher) -
#leaf_value : Float64
Raises an exception because a Root does not have a leaf value.
Instance methods inherited from class GeoJSON::Coordinates::CoordinateTree
leaf_value : Float64
leaf_value
Constructor methods inherited from class GeoJSON::Coordinates::CoordinateTree
new(parser : JSON::PullParser)
new
Constructor Detail
def self.new(parser : JSON::PullParser)
#
Creates a CoordinateTree from the given JSON::PullParser. This
constructor assumes that the parser is positioned at the beginning of
a GeoJSON coordinate string.
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.