Class: Eventual::DatePeriod

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



179
180
181
# File 'lib/eventual/syntax_nodes.rb', line 179

def first
  @first ||= walk { |elements| elements.map{ |e| e } }.first
end

#lastObject



183
184
185
# File 'lib/eventual/syntax_nodes.rb', line 183

def last
  @last ||= walk { |elements| elements.map{ |e| e } }.last
end