Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_1_378) is shown here.
style_url(path, css_name=nil)
public
Qualify a stylesheet URL; if if css_name does not begin with
‘/’ or ‘http[s]://’, prepend a prefix relative to path.
Otherwise, return it unmodified.
# File lib/rdoc/generator.rb, line 85
def style_url(path, css_name=nil)
# $stderr.puts "style_url( #{path.inspect}, #{css_name.inspect} )"
css_name ||= CSS_NAME
if %{^(https?:/)?/} =~ css_name
css_name
else
RDoc::Markup::ToHtml.gen_relative_url path, css_name
end
end