class Node

Attributes

id[RW]
parent[R]
path[RW]

Public Class Methods

new(parent = nil) click to toggle source
# File lib/openehr/parser/opt_parser.rb, line 327
def initialize(parent = nil)
  @parent = parent
  @path = '/' if parent.nil?
end

Public Instance Methods

root?() click to toggle source
# File lib/openehr/parser/opt_parser.rb, line 332
def root?
  parent.nil?
end