Class: Calculi::Attribute::Boolean

Inherits:
Abstract
  • Object
show all
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

Attributes inherited from Abstract

#ivar_name, #name, #setter

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

#defaultBoolean (readonly)

Default value for the attribute

Returns:



# File 'lib/calculi/attribute/boolean.rb', line 2

Instance Method Details

#default_setterObject



7
8
9
# File 'lib/calculi/attribute/boolean.rb', line 7

def default_setter
  ->(o) { !!o }
end