Method: Mobility::Backend::ClassMethods#option_reader

Defined in:
lib/mobility/backend.rb

#option_reader(name) ⇒ Object

Create instance and class methods to access value on options hash



178
179
180
181
182
183
184
185
186
187
188
# File 'lib/mobility/backend.rb', line 178

def option_reader(name)
  module_eval "  def self.\#{name}\n    options[:\#{name}]\n  end\n\n  def \#{name}\n    self.class.options[:\#{name}]\n  end\n  EOM\nend\n", __FILE__, __LINE__ + 1