Class: Holidays::Definition::Validator::CustomMethod
- Inherits:
-
Object
- Object
- Holidays::Definition::Validator::CustomMethod
- Defined in:
- lib/holidays/definition/validator/custom_method.rb
Constant Summary collapse
- VALID_ARGUMENTS =
["date", "year", "month", "day", "region"]
Instance Method Summary collapse
Instance Method Details
#valid?(m) ⇒ Boolean
7 8 9 10 11 |
# File 'lib/holidays/definition/validator/custom_method.rb', line 7 def valid?(m) valid_name?(m[:name]) && valid_arguments?(m[:arguments]) && valid_source?(m[:source]) end |