Class: OpenEhr::ADL::Validator

Inherits:
Object
  • Object
show all
Defined in:
lib/open_ehr/parser/validator.rb

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ Validator

Returns a new instance of Validator.



9
10
11
# File 'lib/open_ehr/parser/validator.rb', line 9

def initialize(parser)
  @parser = parser
end

Instance Method Details

#validate(input_string, name = nil) ⇒ Object



13
14
15
# File 'lib/open_ehr/parser/validator.rb', line 13

def validate(input_string, name = nil)
  @parser.parse(input_string, name)
end