Class: Crntb::Minute

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



123
124
125
# File 'lib/crntb/field.rb', line 123

def field_range
  0..59
end

#parseObject



127
128
129
130
131
132
133
134
# File 'lib/crntb/field.rb', line 127

def parse
  case field
  when '*'
    "every minute"
  else
    "when minute equals #{super}"
  end
end