class Cron::Parser::MinuteField
Public Class Methods
allowed_special_characters()
click to toggle source
# File lib/cron/parser/minute_field.rb, line 6 def self.allowed_special_characters; %w{ * / , - } end
allowed_values()
click to toggle source
# File lib/cron/parser/minute_field.rb, line 3 def self.allowed_values; ("0".."9").to_a + ("00".."59").to_a end
generate_meaning(list, unit)
click to toggle source
Creates partial meaning (sentence) for the minute field’s pattern.
# File lib/cron/parser/minute_field.rb, line 12 def self.generate_meaning(list, unit) meaning = "" meaning += self.field_preposition(unit) meaning += " " meaning += list.map(&:to_s).map(&:ordinalize).join(", ") meaning += " " meaning += unit meaning end
lower_bound()
click to toggle source
# File lib/cron/parser/minute_field.rb, line 5 def self.lower_bound; self.allowed_values.first end
specifications()
click to toggle source
Calls superclass method
Cron::Parser::Field::specifications
# File lib/cron/parser/minute_field.rb, line 7 def self.specifications super end
upper_bound()
click to toggle source
# File lib/cron/parser/minute_field.rb, line 4 def self.upper_bound; self.allowed_values.last end