class Roadie::NullProvider

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.

Public Instance Methods

find_stylesheet(name) click to toggle source
# File lib/roadie/null_provider.rb, line 7
def find_stylesheet(name) empty_stylesheet end
find_stylesheet!(name) click to toggle source
# File lib/roadie/null_provider.rb, line 8
def find_stylesheet!(name) empty_stylesheet end
inspect() click to toggle source
# File lib/roadie/null_provider.rb, line 11
def inspect() "#<#{self.class}>" end
to_s() click to toggle source
# File lib/roadie/null_provider.rb, line 10
def to_s() inspect end

Private Instance Methods

empty_stylesheet() click to toggle source
# File lib/roadie/null_provider.rb, line 14
def empty_stylesheet() Stylesheet.new "(null)", "" end