Changeset 403 for ruby/trunk/lib
- Timestamp:
- Jan 27, 2010, 12:05:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/open_ehr/am/archetype/ontology.rb
r402 r403 6 6 attr_accessor :constraint_codes, :specialisation_depth 7 7 attr_accessor :term_attribute_names, :term_codes 8 attr_accessor :terminologies_available 8 attr_reader :terminologies_available 9 10 def initialize(args = { }) 11 self.terminologies_available = args[:terminologies_available] 12 self.specialisation_depth = args[:specialisation_depth] 13 self.term_codes = args[:term_codes] 14 self.constraint_codes = args[:constraint_codes] 15 self.term_attribute_names = args[:term_attribute_names] 16 end 17 18 def terminologies_available=(terminologies_available) 19 if terminologies_available.nil? 20 raise ArgumentError, 'terminologies_available is mandatory' 21 end 22 @terminologies_available = terminologies_available 23 end 9 24 10 25 def constraint_binding(a_terminology, a_code)
Note:
See TracChangeset
for help on using the changeset viewer.