Class: Walrus::Grammar::SlurpDirective

Inherits:
Directive
  • Object
show all
Defined in:
lib/walrus/grammar/slurp_directive.rb

Instance Method Summary collapse

Instance Method Details

#compile(options = {}) ⇒ Object

The slurp directive produces no meaningful output; but we leave a comment in the compiled template so that the location of the directive is visible in the source.



31
32
33
# File 'lib/walrus/grammar/slurp_directive.rb', line 31

def compile options = {}
  "# Slurp directive\n"
end