Class: Copper::DataTypes::Range
- Defined in:
- lib/copper/data_types/range.rb
Constant Summary
Constants inherited from DataType
DataType::CLASS_MAP, DataType::DATATYPE_MAP
Instance Method Summary collapse
Methods inherited from DataType
#as, factory, get_class, #initialize, #value
Constructor Details
This class inherits a constructor from Copper::DataTypes::DataType
Instance Method Details
#contains(value) ⇒ Object
6 7 8 |
# File 'lib/copper/data_types/range.rb', line 6 def contains(value) @value.include?(value) end |
#in(value) ⇒ Object
10 11 12 |
# File 'lib/copper/data_types/range.rb', line 10 def in(value) @value.include?(value) end |