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 9
def find_stylesheet(name)
  empty_stylesheet
end
find_stylesheet!(name) click to toggle source
# File lib/roadie/null_provider.rb, line 13
def find_stylesheet!(name)
  empty_stylesheet
end
inspect() click to toggle source
# File lib/roadie/null_provider.rb, line 21
def inspect
  "#<#{self.class}>"
end
to_s() click to toggle source
# File lib/roadie/null_provider.rb, line 17
def to_s
  inspect
end

Private Instance Methods

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