Sha256: 2de3dc20d331bdd470c14b472a437bcfcdf2270c1c1b3b6d9b4680549f69da30

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

module Sprockets
  module Directives
    class RelativeRequireDirective < RequireDirective
      def self.pattern
        /(require)\s+(#{QUOTED_STRING})/
      end
      
      def require_location
        parse_quoted_string(argument)
      end

      protected
        def location_finder
          source_file
        end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sprockets-foo-0.0.4 ext/sprockets_with_directives/lib/sprockets/directives/relative_require_directive.rb
sprockets-foo-0.0.3 ext/sprockets_with_directives/lib/sprockets/directives/relative_require_directive.rb
sprockets-foo-0.0.2 ext/sprockets_with_directives/lib/sprockets/directives/relative_require_directive.rb