Class: Arara::IconToggleComponent

Inherits:
ActionView::Component::Base
  • Object
show all
Defined in:
app/components/arara/icon_toggle_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(title:, on: false) ⇒ IconToggleComponent

Returns a new instance of IconToggleComponent.



4
5
6
7
# File 'app/components/arara/icon_toggle_component.rb', line 4

def initialize(title:, on: false)
  @title = title
  @on = on
end