Changeset 128 for ruby/trunk/lib/models/rm/common/archetyped.rb
- Timestamp:
- May 26, 2009, 7:18:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/rm/common/archetyped.rb
r112 r128 16 16 class Pathable 17 17 attr_accessor :parent 18 18 19 def initialize(parent = nil) 19 20 @parent = parent 20 21 end 22 21 23 def item_at_path(path) 22 24 raise NotImplementError, "item_at_path must be implemented" 23 25 end 26 24 27 def items_at_path(path) 25 28 raise NotImplementError, "items_at_path must be implemented" 26 29 end 30 27 31 def path_exists?(path) 28 32 raise NotImplementError, "path_exists? must be implemented" 29 33 end 34 30 35 def path_of_item(item) 31 36 raise NotImplementError, "path_of_item must be implemented" 32 37 end 38 33 39 def path_unique(path) 34 40 raise NotImplementError, "path_unique must be implemented" … … 40 46 attr_reader :archetype_node_id, :name, :links 41 47 attr_accessor :uid, :archetype_details, :feeder_audit 48 42 49 def initialize(archetype_node_id, name, links, parent=nil, uid=nil, archetype_details=nil, feeder_audit=nil) 43 50 super(parent)
Note:
See TracChangeset
for help on using the changeset viewer.