Class: MxxRu::AbstractGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/mxx_ru/abstract_target.rb

Overview

Base class for all source code generators.

Instance Method Summary collapse

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.

Raises:



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.

Raises:



198
199
200
# File 'lib/mxx_ru/abstract_target.rb', line 198

def clean( target )
  raise AbstractMethodEx.new( "MxxRu::AbstractGenerator::clean" )
end