summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-06-28 05:30:59 +0000
committermurphy <murphy@rubychan.de>2009-06-28 05:30:59 +0000
commit00966d3cd17d5c9f07990d3e9628767ac5a867b6 (patch)
tree8c77a980c80730acfbab45da3d1b112bd71a5565 /lib/coderay/encoders
parent337ca4282f8a0e25bd1fe04898b1f3919627b0d9 (diff)
downloadcoderay-00966d3cd17d5c9f07990d3e9628767ac5a867b6.tar.gz
Renamed TokenFilter to TokenClassFilter.
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r--lib/coderay/encoders/comment_filter.rb6
-rw-r--r--lib/coderay/encoders/token_class_filter.rb (renamed from lib/coderay/encoders/token_filter.rb)4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/coderay/encoders/comment_filter.rb b/lib/coderay/encoders/comment_filter.rb
index e30c664..62de696 100644
--- a/lib/coderay/encoders/comment_filter.rb
+++ b/lib/coderay/encoders/comment_filter.rb
@@ -1,13 +1,13 @@
module CodeRay
module Encoders
- load :token_filter
+ load :token_class_filter
- class CommentFilter < TokenFilter
+ class CommentFilter < TokenClassFilter
register_for :comment_filter
- DEFAULT_OPTIONS = TokenFilter::DEFAULT_OPTIONS.merge \
+ DEFAULT_OPTIONS = TokenClassFilter::DEFAULT_OPTIONS.merge \
:exclude => [:comment]
end
diff --git a/lib/coderay/encoders/token_filter.rb b/lib/coderay/encoders/token_class_filter.rb
index 665587b..69e7c82 100644
--- a/lib/coderay/encoders/token_filter.rb
+++ b/lib/coderay/encoders/token_class_filter.rb
@@ -3,10 +3,10 @@ module Encoders
load :filter
- class TokenFilter < Filter
+ class TokenClassFilter < Filter
include Streamable
- register_for :token_filter
+ register_for :token_class_filter
DEFAULT_OPTIONS = {
:exclude => [],