Class: PnoteClient::Validators::HmlValidator

Inherits:
Validator
  • Object
show all
Defined in:
lib/pnote_client/validators/hml_validator.rb

Instance Method Summary collapse

Methods inherited from Validator

#error_count, #has_error?

Constructor Details

#initialize(hml_document) ⇒ HmlValidator

Returns a new instance of HmlValidator.



13
14
15
16
# File 'lib/pnote_client/validators/hml_validator.rb', line 13

def initialize(hml_document)
  super()
  @hml_document = hml_document
end

Instance Method Details

#validateObject



18
19
20
21
22
# File 'lib/pnote_client/validators/hml_validator.rb', line 18

def validate
  reset_errors
  validate_document
  return @errors
end