Class: Crntb::Month

Inherits:
Field
  • Object
show all
Defined in:
lib/crntb/field.rb

Instance Attribute Summary

Attributes inherited from Field

#field

Instance Method Summary collapse

Methods inherited from Field

#every_time?, #expand_range, #first_to_last?, #get_collection, #get_range, #get_step, #initialize, #interpretation, parse, #range_time?

Constructor Details

This class inherits a constructor from Crntb::Field

Instance Method Details

#field_rangeObject



179
180
181
# File 'lib/crntb/field.rb', line 179

def field_range
  1..12
end

#parseObject



169
170
171
172
173
174
175
176
177
# File 'lib/crntb/field.rb', line 169

def parse
  case field
  when '*'
    "every day "
  else
    "In #{super}"
  end

end