Class: OpenEHR::Parser::ADLParser

Inherits:
Base
  • Object
show all
Defined in:
lib/openehr/parser/adl_parser.rb

Instance Attribute Summary

Attributes inherited from Base

#filename

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from OpenEHR::Parser::Base

Instance Method Details

#parse(validate: false) ⇒ Object



11
12
13
14
15
# File 'lib/openehr/parser/adl_parser.rb', line 11

def parse(validate: false)
  archetype.tap do |a|
    ArchetypeValidator.new(a).validate! if validate
  end
end