Class: Malachite::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/malachite/compiler.rb

Instance Method Summary collapse

Constructor Details

#initializeCompiler

Returns a new instance of Compiler.



3
4
5
# File 'lib/malachite/compiler.rb', line 3

def initialize
  @compiled_file = path_to_compiled_file
end

Instance Method Details

#compileObject



7
8
9
10
# File 'lib/malachite/compiler.rb', line 7

def compile
  return @compiled_file if File.exist?(@compiled_file)
  compile!
end