class Assette::Reader::Css
Public Class Methods
comment_str()
click to toggle source
# File lib/assette/readers/css.rb, line 28 def comment_str '/* %s */' end
error(str, stack = nil)
click to toggle source
# File lib/assette/readers/css.rb, line 9 def error str, stack = nil <<-CSS body:before { position: absolute; top: 0px; padding: 10px; font-size: 18px; text-align: center; width: 100%; display: block; content: #{str.inspect}; background-color: #992E40; color: white; font-weight:bold; z-index: 9999; } CSS end
include(path)
click to toggle source
# File lib/assette/readers/css.rb, line 38 def include path <<-CSS #{comment_str % path} @import url("#{path}?nodep"); CSS end
tag(path)
click to toggle source
# File lib/assette/readers/css.rb, line 32 def tag path <<-HTML <link href="#{path}" rel="stylesheet" type="text/css" media="all" /> HTML end
Public Instance Methods
compile()
click to toggle source
# File lib/assette/readers/css.rb, line 3 def compile @file.text end