class Runt::YearTE

Simple expression which returns true if the supplied arguments occur within the given year.

Public Class Methods

new(year) click to toggle source
# File lib/runt/temporalexpression.rb, line 735
def initialize(year)
  @year = year
end

Public Instance Methods

include?(date) click to toggle source
# File lib/runt/temporalexpression.rb, line 739
def include?(date)
  return date.year == @year
end
to_s() click to toggle source
# File lib/runt/temporalexpression.rb, line 743
def to_s
  "during the year #{@year}"
end