Sha256: 25f54c0873087b88b7051cd01b7c1e19e2065ae5e70673ae28ae1f4fe0f474b0

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 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)
      # Intentionally left blank.
    end

    def transform_dom(dom)
    end

    def transform_css(css)
      css
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roadie-5.2.1 lib/roadie/null_url_rewriter.rb
roadie-5.2.0 lib/roadie/null_url_rewriter.rb