Class: Handlebars::Config

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/handlebars-amd-rails.rb

Instance Method Summary collapse

Instance Method Details

#to_camelcaseObject



11
12
13
14
15
16
# File 'lib/handlebars-amd-rails.rb', line 11

def to_camelcase
  instance_variable_get(:@table).inject({}) do |memo, (key, value)|
    memo[key.to_s.camelcase(:lower)] = value
    memo
  end
end