Class: Renogen::ChangeLog::Validator
- Inherits:
-
Object
- Object
- Renogen::ChangeLog::Validator
- Defined in:
- lib/renogen/change_log/validator.rb
Overview
Validates the change log
Instance Method Summary collapse
-
#initialize(formatter) ⇒ Validator
constructor
A new instance of Validator.
-
#validate!(changelog) ⇒ Object
Validates the change log.
Constructor Details
#initialize(formatter) ⇒ Validator
Returns a new instance of Validator.
7 8 9 10 |
# File 'lib/renogen/change_log/validator.rb', line 7 def initialize(formatter) @formatter = formatter @validations = formatter.['allowed_values'] end |
Instance Method Details
#validate!(changelog) ⇒ Object
Validates the change log
15 16 17 |
# File 'lib/renogen/change_log/validator.rb', line 15 def validate!(changelog) validate_headings(changelog) end |