Changeset 224 for ruby/branches
- Timestamp:
- Aug 21, 2009, 12:55:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/lib/open_ehr/rm/data_types/text.rb
r221 r224 55 55 56 56 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 58 60 @terminology_id = terminology_id 59 61 end 60 62 61 63 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 63 67 @code_string = code_string 64 68 end … … 94 98 95 99 def encoding=(encoding) 96 if !encoding.nil? and encoding. empty?100 if !encoding.nil? and encoding.code_string.empty? 97 101 raise ArgumentError, "encoding is not valid" 98 102 end
Note:
See TracChangeset
for help on using the changeset viewer.