Method: TestML::Compiler::Lite#pop
- Defined in:
- lib/testml/compiler/lite.rb
#pop(count = 1) ⇒ Object
182 183 184 185 186 |
# File 'lib/testml/compiler/lite.rb', line 182 def pop(count=1) fail if count > @tokens.size array = @tokens.slice! 0..(count-1) count > 1 ? array : array[0] end |