Class: Roadie::NullProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/roadie/null_provider.rb

Overview

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.

Instance Method Summary collapse

Instance Method Details

#find_stylesheet(name) ⇒ Object


7
# File 'lib/roadie/null_provider.rb', line 7

def find_stylesheet(name) empty_stylesheet end

#find_stylesheet!(name) ⇒ Object


8
# File 'lib/roadie/null_provider.rb', line 8

def find_stylesheet!(name) empty_stylesheet end

#inspectObject


11
# File 'lib/roadie/null_provider.rb', line 11

def inspect() "#<#{self.class}>" end

#to_sObject


10
# File 'lib/roadie/null_provider.rb', line 10

def to_s() inspect end