class GeoJSON::Coordinates::CoordinateTree::Branch
Overview
A CoordinateTree::Branch
is an intermediate node in a CoordinateTree
structure. It has children and a parent but no leaf value.
Defined in:
geojson/coordinates/coordinate_tree.crConstructors
-
.new(parent : CoordinateTree, parser : JSON::PullParser)
Creates a new
Branch
as a child of parent based on parser. - .new(parent : CoordinateTree)
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. -
#each(*args, **options)
Iterates over this Branch's children.
-
#each(*args, **options, &)
Iterates over this Branch's children.
-
#hash(hasher)
See
Object#hash(hasher)
-
#leaf_value : Float64
Raises an exception because a Branch 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(parent : CoordinateTree, parser : JSON::PullParser)
#
Creates a new Branch
as a child of parent based on parser. This
constructor assumes that the parser is positioned at the beginning of
an array in a GeoJSON coordinate string.
def self.new(parent : CoordinateTree)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.