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.cr

Constructors

Instance Method Summary

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.


[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def each(*args, **options) #

Iterates over this Root's children.


[View source]
def each(*args, **options, &) #

Iterates over this Root's children.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def leaf_value : Float64 #

Raises an exception because a Root does not have a leaf value.


[View source]