class Runt::YearTE
Simple expression which returns true if the supplied arguments occur within the given year.
Attributes
year[R]
Public Class Methods
new(year)
click to toggle source
# File lib/runt/temporalexpression.rb, line 933 def initialize(year) @year = year end
Public Instance Methods
==(o)
click to toggle source
Calls superclass method
# File lib/runt/temporalexpression.rb, line 937 def ==(o) o.is_a?(YearTE) ? year == o.year : super(o) end
include?(date)
click to toggle source
# File lib/runt/temporalexpression.rb, line 941 def include?(date) return date.year == @year end
to_s()
click to toggle source
# File lib/runt/temporalexpression.rb, line 945 def to_s "during the year #{@year}" end