Class: Walrus::Grammar::IncludeDirective
- Inherits:
-
Directive
- Object
- Directive
- Walrus::Grammar::IncludeDirective
- Defined in:
- lib/walrus/grammar/include_directive.rb
Instance Method Summary collapse
Instance Method Details
#compile(options = {}) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/walrus/grammar/include_directive.rb', line 28 def compile = {} inner, outer = [:compiler_instance].compile_subtree(subtree) inner = [] if inner.nil? inner.unshift "\# Include (start): #{file_name.to_s}:\n" [inner, outer] end |