Class: HstoreRadioButtons::MethodNamer
- Inherits:
-
Object
- Object
- HstoreRadioButtons::MethodNamer
- Defined in:
- lib/hstore_radio_buttons/method_namer.rb
Instance Method Summary collapse
- #getter ⇒ Object
-
#initialize(button_name) ⇒ MethodNamer
constructor
A new instance of MethodNamer.
- #options ⇒ Object
- #setter ⇒ Object
Constructor Details
#initialize(button_name) ⇒ MethodNamer
Returns a new instance of MethodNamer.
3 4 5 |
# File 'lib/hstore_radio_buttons/method_namer.rb', line 3 def initialize() self. = HstoreRadioButtons::Formatter.new().to_method end |
Instance Method Details
#getter ⇒ Object
11 12 13 |
# File 'lib/hstore_radio_buttons/method_namer.rb', line 11 def getter .to_sym end |
#options ⇒ Object
15 16 17 |
# File 'lib/hstore_radio_buttons/method_namer.rb', line 15 def "#{}_options".to_sym end |
#setter ⇒ Object
7 8 9 |
# File 'lib/hstore_radio_buttons/method_namer.rb', line 7 def setter "#{}=".to_sym end |