class OpenEHR::AM::Archetype::ConstraintModel::ArchetypeSlot
Attributes
excludes[R]
includes[R]
Public Class Methods
new(args = { })
click to toggle source
Calls superclass method
OpenEHR::AM::Archetype::ConstraintModel::CObject::new
# File lib/openehr/am/archetype/constraint_model.rb, line 317 def initialize(args = { }) super self.includes = args[:includes] self.excludes = args[:excludes] end
Public Instance Methods
any_allowed?()
click to toggle source
# File lib/openehr/am/archetype/constraint_model.rb, line 337 def any_allowed? return includes.nil? && excludes.nil? end
excludes=(excludes)
click to toggle source
# File lib/openehr/am/archetype/constraint_model.rb, line 330 def excludes=(excludes) if !excludes.nil? && excludes.empty? raise ArgumentError, 'excludes should not be empty' end @excludes = excludes end
includes=(includes)
click to toggle source
# File lib/openehr/am/archetype/constraint_model.rb, line 323 def includes=(includes) if !includes.nil? && includes.empty? raise ArgumentError, 'includes should not be empty' end @includes = includes end