Class: Malachite::Compiler
- Inherits:
-
Object
- Object
- Malachite::Compiler
- Defined in:
- lib/malachite/compiler.rb
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize ⇒ Compiler
constructor
A new instance of Compiler.
Constructor Details
#initialize ⇒ Compiler
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
#compile ⇒ Object
7 8 9 10 |
# File 'lib/malachite/compiler.rb', line 7 def compile return @compiled_file if File.exist?(@compiled_file) compile! end |