Class: MxxRu::AbstractGenerator
- Inherits:
-
Object
- Object
- MxxRu::AbstractGenerator
- Defined in:
- lib/mxx_ru/abstract_target.rb
Overview
Base class for all source code generators.
Direct Known Subclasses
Instance Method Summary collapse
-
#build(target) ⇒ Object
This method is called to generate source code required.
-
#clean(target) ⇒ Object
This method is called to cleanup of generated source code files.
Instance Method Details
#build(target) ⇒ Object
This method is called to generate source code required. Should be redefined in a child class.
- target
-
Target, generator belongs to.
191 192 193 |
# File 'lib/mxx_ru/abstract_target.rb', line 191 def build( target ) raise AbstractMethodEx.new( "MxxRu::AbstractGenerator::build" ) end |
#clean(target) ⇒ Object
This method is called to cleanup of generated source code files.
- target
-
Target, generator belongs to.
198 199 200 |
# File 'lib/mxx_ru/abstract_target.rb', line 198 def clean( target ) raise AbstractMethodEx.new( "MxxRu::AbstractGenerator::clean" ) end |