Class: Baleen::Validation::Validator
- Inherits:
-
Object
- Object
- Baleen::Validation::Validator
- Includes:
- Serializable
- Defined in:
- lib/baleen/validator.rb
Class Method Summary collapse
Methods included from Serializable
deserialize, #dup, #method_missing, #params, symbolize_keys, #to_json
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Baleen::Serializable
Class Method Details
.check(project) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/baleen/validator.rb', line 9 def self.check(project) sections = [:runner, :framework, :ci] sections.each do |sect| validator = Baleen::Validation.const_get(sect.to_s.capitalize) unless validator.new(project).validate return false end end end |