Class: Crntb::DayOfMonth

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



163
164
165
# File 'lib/crntb/field.rb', line 163

def field_range
  1..31
end

#parseObject



153
154
155
156
157
158
159
160
161
# File 'lib/crntb/field.rb', line 153

def parse
  case field
  when '*'
    ""
  else
    "on the #{super}"
  end

end