module NaturalEarth

Constants

COUNTRIES
RESOURCES_DIR
SUBDIVISIONS
VERSION

Protected Class Methods

load(resource_name) click to toggle source
# File lib/natural_earth.rb, line 16
def load(resource_name)
  path = File.join(NaturalEarth::RESOURCES_DIR, "#{resource_name}.json")
  MultiJson.load(File.read(path)) if File.exist?(path) && File.readable?(path)
end