Class: K4compiler::Base
- Inherits:
-
Object
- Object
- K4compiler::Base
- Defined in:
- lib/k4compiler/compiler/base.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#compile ⇒ Object
compile.
- #config ⇒ K4compiler::Config
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/k4compiler/compiler/base.rb', line 10 def initialize(config) @config_ = config end |
Class Method Details
.options ⇒ Hash
6 7 8 |
# File 'lib/k4compiler/compiler/base.rb', line 6 def self. return {} end |
Instance Method Details
#compile ⇒ Object
compile
20 21 22 |
# File 'lib/k4compiler/compiler/base.rb', line 20 def compile raise NotImplementedError.new("Compile method implement in child classes.") end |
#config ⇒ K4compiler::Config
15 16 17 |
# File 'lib/k4compiler/compiler/base.rb', line 15 def config return @config_ end |