Class: CounterComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- CounterComponent
- Defined in:
- lib/generators/frozen/templates/ui/demo_component/counter_component.rb
Instance Method Summary collapse
-
#initialize(initial_value: 0, label: false) ⇒ CounterComponent
constructor
A new instance of CounterComponent.
Constructor Details
#initialize(initial_value: 0, label: false) ⇒ CounterComponent
Returns a new instance of CounterComponent.
2 3 4 5 |
# File 'lib/generators/frozen/templates/ui/demo_component/counter_component.rb', line 2 def initialize(initial_value: 0, label: false) @initial_value = initial_value @label = label end |