Method: Eggshell::ParseTree#push_block
- Defined in:
- lib/eggshell/parse-tree.rb
#push_block ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/eggshell/parse-tree.rb', line 92 def push_block if @modes[-1] == :block || @modes[-1] == :raw if @cur_block line_end = @cur_block[3] line_end = @lines[-1].line_num if @lines[-1] @ptr << [:block, @cur_block[1], @cur_block[2], @lines, @cur_block[3], line_end] @lines = [] @cur_block[0].reset @cur_block = nil end @modes.pop end end |