Class: Droonga::Catalog::Version2Validator
- Inherits:
-
Object
- Object
- Droonga::Catalog::Version2Validator
- Defined in:
- lib/droonga/catalog/version2_validator.rb
Instance Method Summary collapse
-
#initialize(raw, path) ⇒ Version2Validator
constructor
A new instance of Version2Validator.
- #validate ⇒ Object
Constructor Details
#initialize(raw, path) ⇒ Version2Validator
Returns a new instance of Version2Validator.
21 22 23 24 |
# File 'lib/droonga/catalog/version2_validator.rb', line 21 def initialize(raw, path) @raw = raw @path = path end |
Instance Method Details
#validate ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/droonga/catalog/version2_validator.rb', line 26 def validate @details = [] validate_datasets unless @details.empty? raise ValidationError.new(@path, @details) end end |