Changeset 111


Ignore:
Timestamp:
Oct 26, 2008, 3:54:46 PM (10 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #63

File:
1 moved

Legend:

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

    r110 r111  
    77      module Directory
    88        class Folder < OpenEHR::RM::Archetyped::Locatable
    9           attr_reader :items
    10           def initialize(archetype_node_id, name, links, parent=nil, items=nil, uid = nil)
    11             super(archetype_node_id, name, links)
    12            
     9          attr_accessor :items
     10          attr_reader folders
     11          def initialize(archetype_node_id, name, links, parent=nil, folders=nil, items=nil, uid = nil, archetype_details=nil, feeder_audit=nil)
     12            super(archetype_node_id, name, links, parent, uid, archetype_details, feeder_audit)
     13            self.items = items
    1314          end
    14         end
    15       end     
    16     end
    17   end
    18 end
     15          def folders=(folders)
     16            raise ArgumentError, "empty subfolder" if !@folders.nil and @folders.empty?
     17            @folders = folders
     18          end
     19        end       
     20      end # of Directory
     21    end # of Common
     22  end # of RM
     23end # of OpenEHR
Note: See TracChangeset for help on using the changeset viewer.