Module: RGen::MetamodelBuilder::ModuleExtension
Overview
This module is used to extend modules which should be part of RGen metamodels
Class Method Summary
collapse
Instance Method Summary
collapse
#_set_ecore_internal, clear_ecore_cache, #ecore
Instance Method Details
#_annotations ⇒ Object
17
18
19
|
# File 'lib/rgen/metamodel_builder/module_extension.rb', line 17
def _annotations
@_annotations ||= []
end
|
#_constantOrder ⇒ Object
21
22
23
|
# File 'lib/rgen/metamodel_builder/module_extension.rb', line 21
def _constantOrder
@_constantOrder ||= []
end
|
#annotation(hash) ⇒ Object
13
14
15
|
# File 'lib/rgen/metamodel_builder/module_extension.rb', line 13
def annotation(hash)
_annotations << Intermediate::Annotation.new(hash)
end
|
#final_method(m) ⇒ Object
25
26
27
28
|
# File 'lib/rgen/metamodel_builder/module_extension.rb', line 25
def final_method(m)
@final_methods ||= []
@final_methods << m
end
|
#method_added(m) ⇒ Object
30
31
32
|
# File 'lib/rgen/metamodel_builder/module_extension.rb', line 30
def method_added(m)
raise "Method #{m} can not be redefined" if @final_methods && @final_methods.include?(m)
end
|