Class: CronSpec::WildcardCronValue

Inherits:
CronValueBase show all
Defined in:
lib/cron-spec/wildcard_cron_value.rb

Overview

Represents a wildcard value

Instance Attribute Summary

Attributes inherited from CronValueBase

#lower_limit, #upper_limit

Instance Method Summary collapse

Methods inherited from CronValueBase

#is_value_within_limits?

Constructor Details

#initialize(lower_limit, upper_limit) ⇒ WildcardCronValue

Constructs a new WildcardCronValue with the specified limits.



11
12
13
# File 'lib/cron-spec/wildcard_cron_value.rb', line 11

def initialize(lower_limit, upper_limit)
  super(lower_limit, upper_limit)
end

Instance Method Details

#is_effective?(value) ⇒ Boolean

Returns true if the specified value is any value whatsoever.

Returns:

  • (Boolean)


18
19
20
# File 'lib/cron-spec/wildcard_cron_value.rb', line 18

def is_effective?(value)
  true
end