Class: SmartConfig::Formatters::Boolean
- Inherits:
-
Object
- Object
- SmartConfig::Formatters::Boolean
- Defined in:
- lib/smart_config/formatters/boolean.rb
Overview
Boolean formats the value into a boolean
Class Method Summary collapse
Class Method Details
.format(value) ⇒ Object
8 9 10 |
# File 'lib/smart_config/formatters/boolean.rb', line 8 def self.format(value) ['true', '1', 1, true].include?(value) end |