Class: Calculi::Attribute::Boolean
- Defined in:
- lib/calculi/attribute/boolean.rb
Constant Summary
Constants inherited from Abstract
Abstract::NO_DEFAULT, Abstract::PASSTHRU
Constants included from Utility
Utility::NON_IVAR, Utility::NULL
Instance Attribute Summary collapse
-
#default ⇒ Boolean
readonly
Default value for the attribute.
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
#default?, #initialize, #inspect, #readonly?
Methods included from Utility
#at_prefixed, #callable?, #constantly, #eval_or_value, #instance_variable_compute, #procable?, #set_attribute
Constructor Details
This class inherits a constructor from Calculi::Attribute::Abstract
Instance Attribute Details
#default ⇒ Boolean (readonly)
Default value for the attribute
|
# File 'lib/calculi/attribute/boolean.rb', line 2
|
Instance Method Details
#default_setter ⇒ Object
7 8 9 |
# File 'lib/calculi/attribute/boolean.rb', line 7 def default_setter ->(o) { !!o } end |