Class: Halftime::DateFactories::Unambiguous
- Inherits:
-
Object
- Object
- Halftime::DateFactories::Unambiguous
- Defined in:
- lib/halftime/date_factories.rb
Instance Method Summary collapse
- #ambiguous? ⇒ Boolean
-
#initialize(year, month, day) ⇒ Unambiguous
constructor
A new instance of Unambiguous.
- #new(_) ⇒ Object
Constructor Details
#initialize(year, month, day) ⇒ Unambiguous
4 5 6 7 8 |
# File 'lib/halftime/date_factories.rb', line 4 def initialize(year, month, day) @year = year @month = month @day = day end |
Instance Method Details
#ambiguous? ⇒ Boolean
14 15 16 |
# File 'lib/halftime/date_factories.rb', line 14 def ambiguous? false end |
#new(_) ⇒ Object
10 11 12 |
# File 'lib/halftime/date_factories.rb', line 10 def new(_) Date.new(year, month, day) end |