Class: Walrus::WalrusGrammar::SlurpDirective

Inherits:
Object
  • Object
show all
Defined in:
lib/walrus/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.



23
24
25
# File 'lib/walrus/walrus_grammar/slurp_directive.rb', line 23

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