Class: OpenEHR::RM::Common::Archetyped::Pathable
- Inherits:
-
Object
- Object
- OpenEHR::RM::Common::Archetyped::Pathable
- Defined in:
- lib/open_ehr/rm/common/archetyped.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ Pathable
constructor
A new instance of Pathable.
- #item_at_path(path) ⇒ Object
- #items_at_path(path) ⇒ Object
- #path_exists?(path) ⇒ Boolean
- #path_of_item(item) ⇒ Object
- #path_unique?(path) ⇒ Boolean
Constructor Details
#initialize(args = { }) ⇒ Pathable
Returns a new instance of Pathable.
19 20 21 |
# File 'lib/open_ehr/rm/common/archetyped.rb', line 19 def initialize(args = { }) self.parent = args[:parent] end |
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
17 18 19 |
# File 'lib/open_ehr/rm/common/archetyped.rb', line 17 def parent @parent end |
Instance Method Details
#item_at_path(path) ⇒ Object
23 24 25 |
# File 'lib/open_ehr/rm/common/archetyped.rb', line 23 def item_at_path(path) raise NotImplementedError, "item_at_path must be implemented" end |
#items_at_path(path) ⇒ Object
27 28 29 |
# File 'lib/open_ehr/rm/common/archetyped.rb', line 27 def items_at_path(path) raise NotImplementedError, "items_at_path must be implemented" end |
#path_exists?(path) ⇒ Boolean
31 32 33 |
# File 'lib/open_ehr/rm/common/archetyped.rb', line 31 def path_exists?(path) raise NotImplementedError, "path_exists? must be implemented" end |
#path_of_item(item) ⇒ Object
35 36 37 |
# File 'lib/open_ehr/rm/common/archetyped.rb', line 35 def path_of_item(item) raise NotImplementedError, "path_of_item must be implemented" end |
#path_unique?(path) ⇒ Boolean
39 40 41 |
# File 'lib/open_ehr/rm/common/archetyped.rb', line 39 def path_unique?(path) raise NotImplementedError, "path_unique? must be implemented" end |