Class: Renogen::ChangeLog::Validator

Inherits:
Object
  • Object
show all
Defined in:
lib/renogen/change_log/validator.rb

Overview

Validates the change log

Instance Method Summary collapse

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.options['allowed_values']
end

Instance Method Details

#validate!(changelog) ⇒ Object

Validates the change log

Parameters:



15
16
17
# File 'lib/renogen/change_log/validator.rb', line 15

def validate!(changelog)
  validate_headings(changelog)
end