Sha256: 7f33cc30344b3b1ecfbc921a4ef7ead4013e944d58d76b5eebbd34c56d8a58fb

Contents?: true

Size: 193 Bytes

Versions: 11

Compression:

Stored size: 193 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gmaps4rails-0.8.8 lib/array.rb
gmaps4rails-0.8.7 lib/array.rb
gmaps4rails-0.8.6 lib/array.rb
gmaps4rails-0.8.5 lib/array.rb
gmaps4rails-0.8.4 lib/array.rb
gmaps4rails-0.8.3 lib/array.rb
gmaps4rails-0.8.2 lib/array.rb
gmaps4rails-0.8.1 lib/array.rb
gmaps4rails-0.8.0 lib/array.rb
gmaps4rails-0.7.9 lib/array.rb
gmaps4rails-0.7.8 lib/array.rb