Sha256: 0ecb8cb4b6e36814017e5796d811cde7c8cdc54e9961f7b956b1de052ad6c4e6
Contents?: true
Size: 517 Bytes
Versions: 10
Compression:
Stored size: 517 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 def to_s() inspect end def inspect() "#<#{self.class}>" end private def empty_stylesheet() Stylesheet.new "(null)", "" end end end
Version data entries
10 entries across 10 versions & 1 rubygems