Ignore:
Timestamp:
Dec 20, 2009, 8:20:02 PM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #74, #71

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/open_ehr/am/archetype/constraint_model.rb

    r379 r380  
    150150
    151151        class CDefinedObject < CObject
    152           attr_accessor :assumed_value, :any_allowed
     152          attr_accessor :assumed_value
    153153         
    154154          def initialize(args = { })
     
    168168            raise NotImplementedError, 'subclass should implement this method'
    169169          end
     170
     171          def any_allowed?
     172            raise NotImplementedError, 'subclass should implement this method'
     173          end
    170174        end
    171175
     
    174178
    175179          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?
    178186          end
    179187        end
Note: See TracChangeset for help on using the changeset viewer.