Class: Eventual::MonthPeriod
- Defined in:
- lib/eventual/syntax_nodes.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Node
#month, #times, #weekdays, #year
Instance Method Summary collapse
Methods inherited from Period
Methods inherited from Node
#date_within_weekdays?, #include?, #map, #to_a
Instance Method Details
#first ⇒ Object
169 170 171 |
# File 'lib/eventual/syntax_nodes.rb', line 169 def first @first ||= Date.civil year, month_name.value end |
#last ⇒ Object
173 174 175 |
# File 'lib/eventual/syntax_nodes.rb', line 173 def last @last ||= Date.civil year, month_name.value, -1 end |