Changeset 224 for ruby


Ignore:
Timestamp:
Aug 21, 2009, 12:55:53 AM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

terminology service (encoding) should be implemented. hmmmm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/data_types/text.rb

    r221 r224  
    5555
    5656          def terminology_id=(terminology_id)
    57             raise ArgumentError, "terminology_id should not be nil" if terminology_id.nil?
     57            if terminology_id.nil?
     58              raise ArgumentError, "terminology_id should not be nil"
     59            end
    5860            @terminology_id = terminology_id
    5961          end
    6062
    6163          def code_string=(code_string)
    62             raise ArgumentError, "code_string should not be empty" if code_string.nil? or code_string.empty?
     64            if code_string.nil? or code_string.empty?
     65              raise ArgumentError, "code_string should not be empty"
     66            end
    6367            @code_string = code_string
    6468          end
     
    9498
    9599          def encoding=(encoding)
    96             if !encoding.nil? and encoding.empty?
     100            if !encoding.nil? and encoding.code_string.empty?
    97101              raise ArgumentError, "encoding is not valid"
    98102            end
Note: See TracChangeset for help on using the changeset viewer.