Method: Eggshell::Block#push
- Defined in:
- lib/eggshell/block.rb
#push(block, line_count = -1)) ⇒ Object
Adds a nested block to collect lines into.
31 32 33 34 |
# File 'lib/eggshell/block.rb', line 31 def push(block, line_count = -1) @stack[-1].lines << block @stack << block end |