Sha256: 9f9ed74166c0906adf054be8424235c5584305e2c8e18d57075b3adfcf153d2b
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
# frozen_string_literal: true module Refinements # Provides additional enhancements to the Symbol primitive. module Symbols refine Symbol do # rubocop:todo Naming/BlockForwarding def call(*arguments, &block) proc { |receiver| receiver.public_send self, *arguments, &block } end # rubocop:enable Naming/BlockForwarding end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinements-11.1.3 | lib/refinements/symbols.rb |