Sha256: ca3bdf5172cee83aee7253413c2532742959ce2a9d3b5b7c2e644fe35bb6a9d4

Contents?: true

Size: 274 Bytes

Versions: 17

Compression:

Stored size: 274 Bytes

Contents

class TestProvider
  include Roadie::AssetProvider

  def initialize(files = {})
    @files = files
    @default = files[:default]
  end

  def find_stylesheet(name)
    contents = @files.fetch(name, @default)
    Roadie::Stylesheet.new name, contents if contents
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
roadie-3.5.1 spec/support/test_provider.rb
roadie-3.5.0 spec/support/test_provider.rb
roadie-3.4.0 spec/support/test_provider.rb
roadie-3.3.0 spec/support/test_provider.rb
roadie-3.2.2 spec/support/test_provider.rb
roadie-3.2.1 spec/support/test_provider.rb
roadie-3.2.0 spec/support/test_provider.rb
roadie-3.1.1 spec/support/test_provider.rb
roadie-3.1.0 spec/support/test_provider.rb
roadie-3.1.0.rc1 spec/support/test_provider.rb
roadie-3.0.5 spec/support/test_provider.rb
roadie-3.0.4 spec/support/test_provider.rb
roadie-3.0.3 spec/support/test_provider.rb
roadie-3.0.2 spec/support/test_provider.rb
roadie-3.0.1 spec/support/test_provider.rb
roadie-3.0.0 spec/support/test_provider.rb
roadie-3.0.0.pre1 spec/support/test_provider.rb