Sha256: 82f3ac43581eee1b8cd449db4c1bfe556253added5a554d6d64d87ee2a444e19
Contents?: true
Size: 448 Bytes
Versions: 7
Compression:
Stored size: 448 Bytes
Contents
module Roadie # An asset provider that returns empty stylesheets for any name. # # Use it to ignore missing assets or in your tests when you need a provider # but you do not care what it contains or that it is even referenced at all. class NullProvider def find_stylesheet(name) empty_stylesheet end def find_stylesheet!(name) empty_stylesheet end private def empty_stylesheet() Stylesheet.new "(null)", "" end end end
Version data entries
7 entries across 7 versions & 1 rubygems