Class: HstoreRadioButtons::ButtonSet

Inherits:
Object
  • Object
show all
Defined in:
lib/hstore_radio_buttons/button_set.rb

Instance Method Summary collapse

Constructor Details

#initialize(button_definition, model) ⇒ ButtonSet

Returns a new instance of ButtonSet.



3
4
5
6
7
8
# File 'lib/hstore_radio_buttons/button_set.rb', line 3

def initialize(button_definition, model)
  namer = HstoreRadioButtons::MethodNamer.new(button_definition.name)

  create_instance_methods(button_definition, model, namer)
  create_getters_on_class(model, namer)
end