Class: Vissen::Parameterized::Value::Bool
- Inherits:
-
Object
- Object
- Vissen::Parameterized::Value::Bool
- Includes:
- Vissen::Parameterized::Value
- Defined in:
- lib/vissen/parameterized/value/bool.rb
Overview
Constant Summary collapse
- DEFAULT =
Returns see Value.
false
Instance Attribute Summary
Attributes included from Vissen::Parameterized::Value
Instance Method Summary collapse
-
#write(new_value) ⇒ Object
See Value#write.
Methods included from Vissen::Parameterized::Value
canonicalize, #initialize, #scope, #tainted?, #to_s, types, #untaint!
Instance Method Details
#write(new_value) ⇒ Object
Returns see Value#write.
21 22 23 |
# File 'lib/vissen/parameterized/value/bool.rb', line 21 def write(new_value) super new_value ? true : false end |