Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_8_7_330) 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/generators/html_generator.rb, line 258
def style_url(path, css_name=nil)
# $stderr.puts "style_url( #{path.inspect}, #{css_name.inspect} )"
css_name ||= CSS_NAME
if %r{^(https?:/)?/} =~ css_name
return css_name
else
return HTMLGenerator.gen_url(path, css_name)
end
end