class TwitterCldr::Shared::DayPeriods::AtRule

Public Instance Methods

<=>(other) click to toggle source
# File lib/twitter_cldr/shared/day_periods.rb, line 83
def <=>(other)
  -1
end
at() click to toggle source
# File lib/twitter_cldr/shared/day_periods.rb, line 91
def at
  @at ||= Timestamp.new(
    params[:at][:hour], params[:at][:min], 0
  )
end
matches?(timestamp) click to toggle source
# File lib/twitter_cldr/shared/day_periods.rb, line 97
def matches?(timestamp)
  timestamp == at
end
timespan() click to toggle source
# File lib/twitter_cldr/shared/day_periods.rb, line 87
def timespan
  0
end