Debug
Checks for:
empty tokens
incorrect nesting
It will raise an InvalidTokenStream exception when any of the above occurs.
See also: Encoders::DebugLint
# File lib/coderay/encoders/lint.rb, line 28 def begin_group kind @opened << kind end
# File lib/coderay/encoders/lint.rb, line 37 def begin_line kind @opened << kind end
# File lib/coderay/encoders/lint.rb, line 32 def end_group kind raise IncorrectTokenGroupNesting, 'We are inside %s, not %p (end_group)' % [@opened.reverse.map(&:inspect).join(' < '), kind] if @opened.last != kind @opened.pop end
Generated with the Darkfish Rdoc Generator 2.