Class: ArticleFixtureGen::Exe::Trollop::Validator
- Inherits:
-
Object
- Object
- ArticleFixtureGen::Exe::Trollop::Validator
- Defined in:
- lib/article_fixture_gen/exe/option_parser/trollop/validator.rb
Overview
Validates attribute values using evaled code from YAML file.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(option_data) ⇒ Object
10 11 12 |
# File 'lib/article_fixture_gen/exe/option_parser/trollop/validator.rb', line 10 def self.call(option_data) new(option_data).call end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 |
# File 'lib/article_fixture_gen/exe/option_parser/trollop/validator.rb', line 14 def call Internals.validations.map do |validation| validate(validation) end option_data end |