Class: Chronic::RepeaterSeasonName

Inherits:
RepeaterSeason show all
Defined in:
lib/chronic/repeaters/repeater_season_name.rb

Overview

:nodoc:

Constant Summary

Constants inherited from RepeaterSeason

Chronic::RepeaterSeason::SEASON_SECONDS

Instance Attribute Summary

Attributes inherited from Tag

#type

Instance Method Summary collapse

Methods inherited from Repeater

#<=>, scan, scan_for_day_names, scan_for_day_portions, scan_for_month_names, scan_for_times, scan_for_units

Methods inherited from Tag

#initialize, #start=

Constructor Details

This class inherits a constructor from Chronic::Tag

Instance Method Details

#next(pointer) ⇒ Object



7
8
9
10
# File 'lib/chronic/repeaters/repeater_season_name.rb', line 7

def next(pointer)
  super
  raise 'Not implemented'
end

#this(pointer = :future) ⇒ Object



12
13
14
15
# File 'lib/chronic/repeaters/repeater_season_name.rb', line 12

def this(pointer = :future)
  super
  raise 'Not implemented'
end

#to_sObject



21
22
23
# File 'lib/chronic/repeaters/repeater_season_name.rb', line 21

def to_s
  super << '-season-' << @type.to_s
end

#widthObject



17
18
19
# File 'lib/chronic/repeaters/repeater_season_name.rb', line 17

def width
  (91 * 24 * 60 * 60)
end