Class: Videojuicer::Resource::Types::Boolean
- Defined in:
- lib/videojuicer/resource/types.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#dump ⇒ Object
Boolean.new(“1”).dump #=> true Returns the coerced value.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Videojuicer::Resource::Types::Base
Instance Method Details
#dump ⇒ Object
Boolean.new(“1”).dump #=> true Returns the coerced value
21 22 23 |
# File 'lib/videojuicer/resource/types.rb', line 21 def dump [1, "1", "true", "yes"].include?(raw) end |