Module: Underscored

Included in:
GeocodeFeature, GeocodeInterpretation
Defined in:
lib/twofishes/underscored.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
# File 'lib/twofishes/underscored.rb', line 4

def self.included(base)
  base::FIELDS.map do |_, v|
    define_method(v[:name].underscore) { send(v[:name]) }
  end
end