Class: Eventual::MonthPeriod

Inherits:
Period
  • Object
show all
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

#include?, #map, #range

Methods inherited from Node

#date_within_weekdays?, #include?, #map, #to_a

Instance Method Details

#firstObject



169
170
171
# File 'lib/eventual/syntax_nodes.rb', line 169

def first
  @first ||= Date.civil year, month_name.value
end

#lastObject



173
174
175
# File 'lib/eventual/syntax_nodes.rb', line 173

def last
  @last ||= Date.civil year, month_name.value, -1
end