Class: Spina::Forms::SwitchComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/spina/forms/switch_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fObject

Returns the value of attribute f.



4
5
6
# File 'app/components/spina/forms/switch_component.rb', line 4

def f
  @f
end

#methodObject

Returns the value of attribute method.



4
5
6
# File 'app/components/spina/forms/switch_component.rb', line 4

def method
  @method
end