Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/gmaps4rails/extensions/hash.rb

Instance Method Summary collapse

Instance Method Details

#to_gmaps4railsObject

this method extracts all info from the hash to create javascript this javascript is then rendered raw to the view so it can be interpreted and executed



5
6
7
# File 'lib/gmaps4rails/extensions/hash.rb', line 5

def to_gmaps4rails
  Gmaps4rails.create_js_from_hash(self.with_indifferent_access)
end