Changeset 270


Ignore:
Timestamp:
Sep 16, 2009, 9:56:35 PM (10 years ago)
Author:
KOBAYASHI, Shinji
Message:

spec full covered generic id

Location:
ruby/branches/0.5
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/support/identification.rb

    r268 r270  
    195195          attr_reader :scheme
    196196
    197           def initialize(value, scheme)
    198             super(value)
    199             self.scheme = scheme
     197          def initialize(args)
     198            super(args)
     199            self.scheme = args[:scheme]
    200200          end
    201201
    202202          def scheme=(scheme)
    203             raise ArgumentError, "scheme not valid" if scheme.nil? or scheme.empty?
     203            if scheme.nil? or scheme.empty?
     204              raise ArgumentError, "scheme not valid"
     205            end
    204206            @scheme = scheme
    205207          end
Note: See TracChangeset for help on using the changeset viewer.