Class: DynamicTimeZone::Validator
- Inherits:
-
Object
- Object
- DynamicTimeZone::Validator
- Defined in:
- lib/dynamic_time_zone/validator.rb
Instance Method Summary collapse
Instance Method Details
#valid?(identifier) ⇒ Boolean
5 6 7 |
# File 'lib/dynamic_time_zone/validator.rb', line 5 def valid?(identifier) DynamicTimeZone.enabled && !identifier.scan(REGEX_PATTERN).last.nil? end |