Class: Walrus::WalrusGrammar::BlockDirective
- Inherits:
-
Object
- Object
- Walrus::WalrusGrammar::BlockDirective
- Defined in:
- lib/walrus/walrus_grammar/block_directive.rb
Instance Method Summary collapse
-
#compile(options = {}) ⇒ Object
Returns a string containing the compiled (Ruby) version of receiver.
Instance Method Details
#compile(options = {}) ⇒ Object
Returns a string containing the compiled (Ruby) version of receiver.
17 18 19 20 21 22 |
# File 'lib/walrus/walrus_grammar/block_directive.rb', line 17 def compile( = {}) inner, outer = super inner = '' if inner.nil? inner << "lookup_and_accumulate_placeholder(#{@identifier.to_s.to_sym.inspect})\n" [inner, outer] end |