Class: ConfigToolkit::Boolean
- Inherits:
-
Object
- Object
- ConfigToolkit::Boolean
- Defined in:
- lib/configtoolkit/types.rb
Overview
Since Ruby does not have a boolean type (TrueClass and FalseClass classes for boolean values exist, but they descend from Object), this is an empty marker class that can be passed into the BaseConfig methods to add new parameters (BaseConfig.add_required_param and BaseConfig.add_optional_param) in order to indicate that the parameter is a boolean (the value of the parameter will be true
or false
, however). Boolean values can be written as “true”/“false” or as “yes”/“no” in configuration files.