Module: Geojsonlint

Defined in:
lib/geojsonlint.rb,
lib/geojsonlint/version.rb

Defined Under Namespace

Classes: Geojson, Parser

Constant Summary collapse

VERSION =
"0.1.4"

Class Method Summary collapse

Class Method Details

.validate(geojson) ⇒ Geojson

Validates a geojson object

Parameters:

  • geojson (String, Hash)

    a JSON string or a Ruby object representing JSON data

Returns:



62
63
64
# File 'lib/geojsonlint.rb', line 62

def validate(geojson)
  Parser.new(geojson).run
end