Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/array.rb

Instance Method Summary collapse

Instance Method Details

#to_gmaps4railsObject



2
3
4
5
6
7
8
9
# File 'lib/array.rb', line 2

def to_gmaps4rails
  json = "["
  each do |object|
    json += Gmaps4rails.create_json(object).to_s
  end
  json.chop!.chop! unless json == "["
  json += "]"
end