Class: Primalize::Single::Timestamp
- Inherits:
-
Object
- Object
- Primalize::Single::Timestamp
- Includes:
- Type
- Defined in:
- lib/primalize/single.rb
Constant Summary collapse
- TYPES =
[Time, Date, DateTime].freeze
Constants included from Type
Primalize::Single::Type::DEFAULT_COERCION
Instance Method Summary collapse
- #===(value) ⇒ Object
-
#initialize(&coercion) ⇒ Timestamp
constructor
A new instance of Timestamp.
- #inspect ⇒ Object
Methods included from Type
Constructor Details
#initialize(&coercion) ⇒ Timestamp
Returns a new instance of Timestamp.
328 329 330 |
# File 'lib/primalize/single.rb', line 328 def initialize &coercion @coercion = coercion end |