Changeset 381 for ruby/trunk/lib
- Timestamp:
- Dec 21, 2009, 3:15:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/open_ehr/am/archetype/constraint_model.rb
r380 r381 183 183 184 184 def any_allowed? 185 return !item.nil?185 return item.nil? 186 186 end 187 187 end 188 188 189 189 class CComplexObject < CDefinedObject 190 attr_accessor :attributes, :attributes_valid 191 192 def initialize(args = { }) 193 @attributes = args[:attributes] ? args[:attributes] : [] 194 super 190 attr_accessor :attributes 191 192 def initialize(args = { }) 193 super 194 self.attributes = args[:attributes] 195 end 196 197 def any_allowed? 198 return (@attributes.nil? or @attributes.empty?) 195 199 end 196 200 … … 205 209 206 210 class CDomainType < CDefinedObject 207 211 def standard_equivalent 212 raise NotImplementedError, 'subclass should be defined' 213 end 208 214 end 209 215
Note:
See TracChangeset
for help on using the changeset viewer.