Changeset 396 for ruby/trunk/lib
- Timestamp:
- Jan 7, 2010, 1:32:48 PM (14 years ago)
- Location:
- ruby/trunk/lib/open_ehr/am
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/open_ehr/am/archetype.rb
r373 r396 106 106 # ref_imple_eiffel/components/adl_parser/src/interface/adl_definition.e 107 107 108 class VALIDITY_KIND 108 class ValidityKind 109 attr_reader :value 110 111 MANDATORY = 1001 112 OPTIONAL = 1002 113 DISALLOWED = 1003 114 115 def initialize(args = { }) 116 self.value = args[:value] 117 end 118 119 def value=(value) 120 unless [MANDATORY, OPTIONAL, DISALLOWED].include? value 121 raise ArgumentError, 'invalid value' 122 end 123 @value = value 124 end 109 125 110 126 end -
ruby/trunk/lib/open_ehr/am/archetype/constraint_model/primitive.rb
r395 r396 128 128 end 129 129 end 130 131 class CReal < CInteger 132 133 end 134 135 130 136 end # of Primitive 131 137 end # of CostraintModel
Note:
See TracChangeset
for help on using the changeset viewer.