Class: Formulaic::Inputs::ArrayInput
- Defined in:
- lib/formulaic/inputs/array_input.rb
Direct Known Subclasses
Instance Method Summary collapse
- #fill ⇒ Object
-
#initialize(label, value) ⇒ ArrayInput
constructor
A new instance of ArrayInput.
Constructor Details
#initialize(label, value) ⇒ ArrayInput
Returns a new instance of ArrayInput.
4 5 6 7 |
# File 'lib/formulaic/inputs/array_input.rb', line 4 def initialize(label, value) @label = label @value = value end |
Instance Method Details
#fill ⇒ Object
9 10 11 12 13 |
# File 'lib/formulaic/inputs/array_input.rb', line 9 def fill attempt_to_fill_selects || attempt_to_fill_checkboxes || raise_input_error end |