From b5dd1ba683fb9eb0a74ab0b1f54fd9977e0ed3be Mon Sep 17 00:00:00 2001 From: murphy Date: Sun, 27 Jun 2010 02:49:23 +0000 Subject: More speedups for HTML encoding (numbering, CSS styles, Ruby 1.9). --- lib/coderay/encoders/html/css.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/encoders/html/css.rb') 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 = '' -- cgit v1.2.1