Class: Coupdoeil::Popover::Option::Cache

Inherits:
Coupdoeil::Popover::Option show all
Defined in:
app/models/coupdoeil/popover/option/cache.rb

Constant Summary collapse

VALUES =
[true, false].freeze

Constants inherited from Coupdoeil::Popover::Option

InvalidOptionError

Instance Attribute Summary

Attributes inherited from Coupdoeil::Popover::Option

#value

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Coupdoeil::Popover::Option

inherited, #initialize, into_bits

Constructor Details

This class inherits a constructor from Coupdoeil::Popover::Option

Class Method Details

.parse(value) ⇒ Object



12
# File 'app/models/coupdoeil/popover/option/cache.rb', line 12

def parse(value) = value ? 1 : 0

Instance Method Details

#validate!Object



15
# File 'app/models/coupdoeil/popover/option/cache.rb', line 15

def validate! = validate_inclusion!