Ignore:
Timestamp:
Sep 26, 2009, 10:15:57 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

locatable class completed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/common/archetyped.rb

    r300 r301  
    7878          end
    7979
    80           def item_at_path(path)
    81             if !@path.nil?
    82               if @path == ""
    83                 raise ArgumentError, "path is not valid"
    84               end
     80          def concept
     81            if self.is_archetype_root?
     82              return DvText.new(:value =>
     83                                @archetype_details.archetype_id.concept_name)
     84            else
     85              raise ArgumentError, 'this is not root'
    8586            end
    86           end
    87 
    88           def concept
    89             return DvText.new(:value =>
    90                               @archetype_details.archetype_id.concept_name)
    9187          end
    9288
Note: See TracChangeset for help on using the changeset viewer.