Class: Fluxbit::Form::SpacerInputComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/fluxbit/form/spacer_input_component.rb

Instance Method Summary collapse

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

#callObject



9
10
11
# File 'app/components/fluxbit/form/spacer_input_component.rb', line 9

def call
  content || @with_content
end