# frozen_string_literal: true

module Reruby
  module Actions
    class StringRewrite < Rewrite

      attr_reader :code, :rewriter

      def initialize(code, rewriter)
        @code = code
        @rewriter = rewriter
      end

      def perform
        rewrite(code)
      end

    end
  end
end
