Mange / roadie
1
# frozen_string_literal: true
2

3 5
module Roadie
4
  # This module can be included in your own code to help you implement the
5
  # standard behavior for asset providers.
6
  #
7
  # It helps you by declaring {#find_stylesheet!} in the terms of #find_stylesheet in your own class.
8 5
  module AssetProvider
9 5
    def find_stylesheet!(name)
10 5
      find_stylesheet(name) or raise CssNotFound.new(name, nil, self)
11
    end
12
  end
13
end

Read our documentation on viewing source code .

Loading