Class: Formulaic::Inputs::BooleanInput

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

Instance Method Summary collapse

Methods inherited from Input

#initialize

Constructor Details

This class inherits a constructor from Formulaic::Inputs::Input

Instance Method Details

#fillObject


4
5
6
7
8
9
10
# File 'lib/formulaic/inputs/boolean_input.rb', line 4

def fill
  if value
    check(label)
  else
    uncheck(label)
  end
end