Sha256: a5d0b4e608d3722508e472171194da6cc66f89c143ce6dba6499475761c43e71
Contents?: true
Size: 604 Bytes
Versions: 6
Compression:
Stored size: 604 Bytes
Contents
module RGen module ECore # Mixin to provide access to the ECore model describing a Ruby class or module # built using MetamodelBuilder. # The module should be used to +extend+ a class or module, i.e. to make its # methods class methods. # module ECoreInstantiator # This method will lazily build to ECore model element belonging to the calling # class or module using ECoreTransformer. # def ecore unless defined?(@@transformer) require 'rgen/ecore/ecore_transformer' @@transformer = ECoreTransformer.new end @@transformer.trans(self) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems