Sha256: 12522742ffab93638cf43647ebe20a6d7c59ae3c8ce64ed33860a82cd31c0b30

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

module Roadie
  # @api private
  # Null Object for the URL rewriter role.
  #
  # Used whenever client does not pass any URL options and no URL rewriting
  # should take place.
  class NullUrlRewriter
    def initialize(generator = nil)
    end

    def transform_dom(dom)
    end

    def transform_css(css)
      css
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
roadie-5.1.0 lib/roadie/null_url_rewriter.rb
roadie-5.0.1 lib/roadie/null_url_rewriter.rb
roadie-5.0.0 lib/roadie/null_url_rewriter.rb