Changeset 384


Ignore:
Timestamp:
Dec 24, 2009, 1:32:34 PM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #73

Location:
ruby/trunk
Files:
2 added
1 edited

Legend:

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

    r383 r384  
    3030
    3131        class ExprItem
     32          attr_reader :type
     33
     34          def initialize(args = { })
     35            self.type = args[:type]
     36          end
     37
     38          def type=(type)
     39            if type.nil? or type.empty?
     40              raise ArgumentError, 'type is mandatory'
     41            end
     42            @type = type
     43          end
    3244        end
    3345      end # of Assetion
Note: See TracChangeset for help on using the changeset viewer.