Sha256: 6e36ea3ff1585119a98b61c81e6e18702dfde598745591a57e652218e4b4828e

Contents?: true

Size: 277 Bytes

Versions: 23

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

module Refinements
  # Provides additional enhancements to the Symbol primitive.
  module Symbols
    refine Symbol do
      def call(*arguments, &)
        proc { |receiver| receiver.public_send self, *arguments, & }
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
refinements-11.1.2 lib/refinements/symbols.rb
refinements-11.1.1 lib/refinements/symbols.rb
refinements-11.1.0 lib/refinements/symbols.rb
refinements-11.0.1 lib/refinements/symbols.rb
refinements-11.0.0 lib/refinements/symbols.rb
refinements-10.1.1 lib/refinements/symbols.rb
refinements-10.1.0 lib/refinements/symbols.rb
refinements-10.0.1 lib/refinements/symbols.rb
refinements-10.0.0 lib/refinements/symbols.rb
refinements-9.8.0 lib/refinements/symbols.rb
refinements-9.7.1 lib/refinements/symbols.rb
refinements-9.7.0 lib/refinements/symbols.rb
refinements-9.6.0 lib/refinements/symbols.rb
refinements-9.5.0 lib/refinements/symbols.rb
refinements-9.4.0 lib/refinements/symbols.rb
refinements-9.3.3 lib/refinements/symbols.rb
refinements-9.3.2 lib/refinements/symbols.rb
refinements-9.3.1 lib/refinements/symbols.rb
refinements-9.3.0 lib/refinements/symbols.rb
refinements-9.2.0 lib/refinements/symbols.rb