Method: ReportBuilder::Builder::Html#css
- Defined in:
- lib/reportbuilder/builder/html.rb
#css(css) ⇒ Object
98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/reportbuilder/builder/html.rb', line 98 def css(css) if(File.exists? css) if(!File.exists? @directory+"/css") FileUtils.mkdir @directory+"/css" end if(!File.exists? @directory+"/css/"+File.basename(css)) FileUtils.cp css, @directory+"/css/"+File.basename(css) end @headers.push("<link rel='stylesheet' type='text/css' href='css/#{File.basename(css)}' />") end end |