Module: RGeo::GeoJSON::DelegateToGeometry

Included in:
Feature
Defined in:
lib/rgeo/geo_json/entities.rb

Overview

Simplify usage of inner geometries for Feature and FeatureCollection objets. Including class must contain a ‘#geometry` method.

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object (private)



27
28
29
30
31
# File 'lib/rgeo/geo_json/entities.rb', line 27

private def method_missing(symbol, *args)
  return geometry.public_send(symbol, *args) if geometry

  super
end