Class: Eventual::DatePeriod
- 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
179 180 181 |
# File 'lib/eventual/syntax_nodes.rb', line 179 def first @first ||= walk { |elements| elements.map{ |e| e } }.first end |
#last ⇒ Object
183 184 185 |
# File 'lib/eventual/syntax_nodes.rb', line 183 def last @last ||= walk { |elements| elements.map{ |e| e } }.last end |