Module: GMaps::Rails

Defined in:
lib/gmaps/rails.rb,
lib/gmaps/rails/engine.rb,
lib/gmaps/rails/railtie.rb,
lib/gmaps/rails/version.rb,
lib/gmaps/rails/view_helpers.rb

Defined Under Namespace

Modules: ViewHelpers Classes: Engine, Railtie

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.to_s19(val) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/gmaps/rails.rb', line 4

def to_s19(val)
  case val
  when String, Symbol
    "\"#{val}\""
  when Array, Hash
    val._to_s19
  else
    val.inspect
  end
end