Class: OpenEHR::Parser::CADL::ArchetypeNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent = nil) ⇒ ArchetypeNode

Returns a new instance of ArchetypeNode.



8
9
10
# File 'lib/open_ehr/parser/cadl_node.rb', line 8

def initialize(parent = nil)
  @parent = parent
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/open_ehr/parser/cadl_node.rb', line 6

def id
  @id
end

#parentObject (readonly)

Returns the value of attribute parent.



5
6
7
# File 'lib/open_ehr/parser/cadl_node.rb', line 5

def parent
  @parent
end

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/open_ehr/parser/cadl_node.rb', line 6

def path
  @path
end

Instance Method Details

#root?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/open_ehr/parser/cadl_node.rb', line 12

def root?
  return parent.nil?
end