Ignore:
Timestamp:
May 26, 2009, 7:18:08 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

fixed #59

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/models/rm/common/archetyped.rb

    r112 r128  
    1616        class Pathable
    1717          attr_accessor :parent
     18
    1819          def initialize(parent = nil)
    1920            @parent = parent
    2021          end
     22
    2123          def item_at_path(path)
    2224            raise NotImplementError, "item_at_path must be implemented"
    2325          end
     26
    2427          def items_at_path(path)
    2528            raise NotImplementError, "items_at_path must be implemented"
    2629          end
     30
    2731          def path_exists?(path)
    2832            raise NotImplementError, "path_exists? must be implemented"
    2933          end
     34
    3035          def path_of_item(item)
    3136            raise NotImplementError, "path_of_item must be implemented"
    3237          end
     38
    3339          def path_unique(path)
    3440            raise NotImplementError, "path_unique must be implemented"
     
    4046          attr_reader :archetype_node_id, :name, :links
    4147          attr_accessor :uid, :archetype_details, :feeder_audit
     48
    4249          def initialize(archetype_node_id, name, links, parent=nil, uid=nil, archetype_details=nil, feeder_audit=nil)
    4350            super(parent)
Note: See TracChangeset for help on using the changeset viewer.