From 94ced6235d43c21e035c39c9da9c94d987447eef Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Thu, 3 Oct 2013 13:46:39 +0200 Subject: even less API changes --- lib/coderay/encoders/html/css.rb | 3 +-- lib/coderay/encoders/html/output.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/coderay/encoders/html/css.rb b/lib/coderay/encoders/html/css.rb index e78d062..e06c486 100644 --- a/lib/coderay/encoders/html/css.rb +++ b/lib/coderay/encoders/html/css.rb @@ -11,13 +11,12 @@ module Encoders @style ||= CodeRay::Styles[@style_name] end - def css + def stylesheet @css ||= [ style::CSS_MAIN_STYLES, style::TOKEN_COLORS.gsub(/^(?!$)/, '.CodeRay ') ].join("\n") end - alias stylesheet css def get_style_for_css_classes css_classes cl = styles[css_classes.first] diff --git a/lib/coderay/encoders/html/output.rb b/lib/coderay/encoders/html/output.rb index d3b676c..de6f6ea 100644 --- a/lib/coderay/encoders/html/output.rb +++ b/lib/coderay/encoders/html/output.rb @@ -24,7 +24,7 @@ module Encoders end def make_stylesheet css, in_tag = false # :nodoc: - sheet = css.css + sheet = css.stylesheet sheet = <<-'CSS' if in_tag