Sha256: 56472863c06238997e7eea6cb5a577ed07fe57002d03e1f2ab96242600ad464d

Contents?: true

Size: 360 Bytes

Versions: 4

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module Processors
    class SetPrivacy
      include ComparableInstance

      def initialize(to)
        @to = to

        freeze
      end

      def process(str, _current_node, _matched_node, acc)
        return unless str

        acc.set_privacy(str.to_sym, @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_privacy.rb
leftovers-0.12.1 lib/leftovers/processors/set_privacy.rb
leftovers-0.12.0 lib/leftovers/processors/set_privacy.rb
leftovers-0.11.2 lib/leftovers/processors/set_privacy.rb