Changeset 380 for ruby/trunk/lib/open_ehr/am/archetype/constraint_model.rb
- Timestamp:
- Dec 20, 2009, 8:20:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/open_ehr/am/archetype/constraint_model.rb
r379 r380 150 150 151 151 class CDefinedObject < CObject 152 attr_accessor :assumed_value , :any_allowed152 attr_accessor :assumed_value 153 153 154 154 def initialize(args = { }) … … 168 168 raise NotImplementedError, 'subclass should implement this method' 169 169 end 170 171 def any_allowed? 172 raise NotImplementedError, 'subclass should implement this method' 173 end 170 174 end 171 175 … … 174 178 175 179 def initialize(args = { }) 176 @attributes = args[:item] if args[:item] 177 super 180 super 181 self.item = args[:item] 182 end 183 184 def any_allowed? 185 return !item.nil? 178 186 end 179 187 end
Note:
See TracChangeset
for help on using the changeset viewer.