Class: Fluxbit::Form::SpacerInputComponent
- Inherits:
-
Component
- Object
- Component
- Fluxbit::Form::SpacerInputComponent
- Defined in:
- app/components/fluxbit/form/spacer_input_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(with_content: "", **_args) ⇒ SpacerInputComponent
constructor
A new instance of SpacerInputComponent.
Constructor Details
#initialize(with_content: "", **_args) ⇒ SpacerInputComponent
Returns a new instance of SpacerInputComponent.
4 5 6 7 |
# File 'app/components/fluxbit/form/spacer_input_component.rb', line 4 def initialize(with_content: "", **_args) super @with_content = with_content end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'app/components/fluxbit/form/spacer_input_component.rb', line 9 def call content || @with_content end |