Class: Phlex::Compiler::FileCompiler
- Inherits:
-
Refract::Visitor
- Object
- Refract::Visitor
- Phlex::Compiler::FileCompiler
- Defined in:
- lib/phlex/compiler/file_compiler.rb
Defined Under Namespace
Classes: Result
Instance Method Summary collapse
- #compile(node) ⇒ Object
-
#initialize(path) ⇒ FileCompiler
constructor
A new instance of FileCompiler.
Constructor Details
#initialize(path) ⇒ FileCompiler
Returns a new instance of FileCompiler.
6 7 8 9 10 11 |
# File 'lib/phlex/compiler/file_compiler.rb', line 6 def initialize(path) super() @path = path @current_namespace = [] @results = [] end |
Instance Method Details
#compile(node) ⇒ Object
13 14 15 16 |
# File 'lib/phlex/compiler/file_compiler.rb', line 13 def compile(node) visit(node) @results.freeze end |