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

Version Path
roadie-3.0.5 lib/roadie/null_provider.rb
roadie-3.0.4 lib/roadie/null_provider.rb
roadie-3.0.3 lib/roadie/null_provider.rb
roadie-3.0.2 lib/roadie/null_provider.rb
roadie-3.0.1 lib/roadie/null_provider.rb
roadie-3.0.0 lib/roadie/null_provider.rb
roadie-3.0.0.pre1 lib/roadie/null_provider.rb