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:



190
191
192
# File 'lib/mxx_ru/abstract_target.rb', line 190

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:



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

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