Class: OpenEhr::ADL::Validator
- Inherits:
-
Object
- Object
- OpenEhr::ADL::Validator
- Defined in:
- lib/open_ehr/parser/validator.rb
Instance Method Summary collapse
-
#initialize(parser) ⇒ Validator
constructor
A new instance of Validator.
- #validate(input_string, name = nil) ⇒ Object
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 |