summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/html/css.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-06-27 02:49:23 +0000
committermurphy <murphy@rubychan.de>2010-06-27 02:49:23 +0000
commitb5dd1ba683fb9eb0a74ab0b1f54fd9977e0ed3be (patch)
tree07620834114bf7b7ec19acfb8f86647c3d0f88b1 /lib/coderay/encoders/html/css.rb
parent1a3a0670c82a6e7d75c2ada82dd50a78d8b5de36 (diff)
downloadcoderay-b5dd1ba683fb9eb0a74ab0b1f54fd9977e0ed3be.tar.gz
More speedups for HTML encoding (numbering, CSS styles, Ruby 1.9).
Diffstat (limited to 'lib/coderay/encoders/html/css.rb')
-rw-r--r--lib/coderay/encoders/html/css.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/encoders/html/css.rb b/lib/coderay/encoders/html/css.rb
index 05e4fa4..10e89fc 100644
--- a/lib/coderay/encoders/html/css.rb
+++ b/lib/coderay/encoders/html/css.rb
@@ -20,7 +20,7 @@ module Encoders
parse style::TOKEN_COLORS
end
- def [] *styles
+ def get_style styles
cl = @classes[styles.first]
return '' unless cl
style = ''