From 9bab8e9248c538d92561686734d5dfae3a1bb42f Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 18 May 2010 06:19:53 +0000 Subject: Cleanup, documentation and enhancements to the Filters: * TokenKindFilter handles groups (closes #223). * Added :docstring to the default KINDS_NOT_LOC list. * Also fixed a problem with the :tokens option in Scanners. --- lib/coderay/encoders/lines_of_code.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/coderay/encoders/lines_of_code.rb') diff --git a/lib/coderay/encoders/lines_of_code.rb b/lib/coderay/encoders/lines_of_code.rb index 6b36aef..8ba82fa 100644 --- a/lib/coderay/encoders/lines_of_code.rb +++ b/lib/coderay/encoders/lines_of_code.rb @@ -21,6 +21,8 @@ module Encoders NON_EMPTY_LINE = /^\s*\S.*$/ + protected + def compile tokens, options if scanner = tokens.scanner kinds_not_loc = scanner.class::KINDS_NOT_LOC -- cgit v1.2.1