class Chrono::Fields::Month
Constants
- REGEXP
- TABLE
Public Class Methods
new(source)
click to toggle source
# File lib/chrono/fields/month.rb, line 20 def initialize(source) unless REGEXP =~ source raise InvalidField.new('Unparsable field', source) end @source = source end
Private Instance Methods
interpolated()
click to toggle source
Calls superclass method
Chrono::Fields::Base#interpolated
# File lib/chrono/fields/month.rb, line 29 def interpolated super.downcase.gsub(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/, TABLE) end
range()
click to toggle source
# File lib/chrono/fields/month.rb, line 33 def range 1..12 end