# File lib/rgen/ecore/ecore_to_ruby.rb, line 165 def impl_type etype = @efeature.eType if etype.is_a?(RGen::ECore::EClass) || etype.is_a?(RGen::ECore::EEnum) @classifiers[etype] else ic = etype.instanceClass if ic ic else raise "unknown type: #{etype.name}" end end end
# File lib/rgen/ecore/ecore_to_ruby.rb, line 156 def many? @efeature.many end
# File lib/rgen/ecore/ecore_to_ruby.rb, line 162 def opposite @efeature.eOpposite end
# File lib/rgen/ecore/ecore_to_ruby.rb, line 159 def reference? @efeature.is_a?(RGen::ECore::EReference) end
# File lib/rgen/ecore/ecore_to_ruby.rb, line 152 def value(prop) return false if prop == :containment && @efeature.is_a?(RGen::ECore::EAttribute) @efeature.send(prop) end
# File lib/rgen/ecore/ecore_to_ruby.rb, line 148 def initialize(efeature, classifiers) @efeature = efeature @classifiers = classifiers end