Class: Walrus::Grammar::IncludeDirective

Inherits:
Directive
  • Object
show all
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 options = {}
  inner, outer = options[:compiler_instance].compile_subtree(subtree)
  inner = [] if inner.nil?
  inner.unshift "\# Include (start): #{file_name.to_s}:\n"
  [inner, outer]
end