Sha256: 89c06e1f984cc071b6ae7afc56f19666d683c133d69a791c3e1eb3f1f4846393

Contents?: true

Size: 341 Bytes

Versions: 4

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module Processors
    class SetDefaultPrivacy
      include ComparableInstance

      def initialize(to)
        @to = to

        freeze
      end

      def process(_str, _current_node, _matched_node, acc)
        acc.default_method_privacy = @to
      end

      freeze
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
leftovers-0.12.2 lib/leftovers/processors/set_default_privacy.rb
leftovers-0.12.1 lib/leftovers/processors/set_default_privacy.rb
leftovers-0.12.0 lib/leftovers/processors/set_default_privacy.rb
leftovers-0.11.2 lib/leftovers/processors/set_default_privacy.rb