Class: Spina::Forms::SwitchComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Spina::Forms::SwitchComponent
- Defined in:
- app/components/spina/forms/switch_component.rb
Instance Attribute Summary collapse
-
#f ⇒ Object
Returns the value of attribute f.
-
#method ⇒ Object
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(f, method) ⇒ SwitchComponent
constructor
A new instance of SwitchComponent.
Constructor Details
#initialize(f, method) ⇒ SwitchComponent
Returns a new instance of SwitchComponent.
6 7 8 9 |
# File 'app/components/spina/forms/switch_component.rb', line 6 def initialize(f, method) @f = f @method = method end |
Instance Attribute Details
#f ⇒ Object
Returns the value of attribute f.
4 5 6 |
# File 'app/components/spina/forms/switch_component.rb', line 4 def f @f end |
#method ⇒ Object
Returns the value of attribute method.
4 5 6 |
# File 'app/components/spina/forms/switch_component.rb', line 4 def method @method end |