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

Constructor Details

#initialize(filename) ⇒ ADLParser

Returns a new instance of ADLParser.



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

def initialize(filename)
  super
end

Instance Method Details

#parse(validate: false) ⇒ Object



15
16
17
18
19
# File 'lib/openehr/parser/adl_parser.rb', line 15

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