lib/rouge/lexer.rb in rouge-0.2.5 vs lib/rouge/lexer.rb in rouge-0.2.6

- old
+ new

@@ -257,10 +257,12 @@ # information that is unnecessary for lexing in the real world. # # @example # debug { "hello, world!" } def debug(&b) - puts(b.call) if option :debug + @debug = option(:debug) unless instance_variable_defined?(:@debug) + + puts(b.call) if @debug end # @abstract # # Called after each lex is finished. The default implementation