Module: WannabeBool::Configuration
- Included in:
- WannabeBool
- Defined in:
- lib/wannabe_bool/configuration.rb
Instance Method Summary collapse
Instance Method Details
#invalid_value_behaviour ⇒ Object
9 10 11 |
# File 'lib/wannabe_bool/configuration.rb', line 9 def invalid_value_behaviour @invalid_value_behaviour ||= WannabeBool::InvalidValueBehaviour::False end |
#invalid_value_behaviour=(behaviour) ⇒ Object
3 4 5 6 7 |
# File 'lib/wannabe_bool/configuration.rb', line 3 def invalid_value_behaviour=(behaviour) raise ArgumentError, 'behaviour does not respond to call method' unless behaviour.respond_to?(:call) @invalid_value_behaviour = behaviour end |