Class: Videojuicer::Resource::Types::Boolean

Inherits:
Base
  • Object
show all
Defined in:
lib/videojuicer/resource/types.rb

Instance Attribute Summary

Attributes inherited from Base

#raw

Instance Method Summary collapse

Methods inherited from Base

#initialize, load

Constructor Details

This class inherits a constructor from Videojuicer::Resource::Types::Base

Instance Method Details

#dumpObject

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