Class: Formulaic::Inputs::ArrayInput

Inherits:
Input
  • Object
show all
Defined in:
lib/formulaic/inputs/array_input.rb

Direct Known Subclasses

CheckboxInput, SelectInput

Instance Method Summary collapse

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

#fillObject



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