Sha256: 0971a643758119c25c7a466a8858d70de602c817a2c37d7e8e5b395169a2b3f4

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

module Polyfill
  module V2_3
    module Hash
      module Instance
        module ToProc
          module Method
            def to_proc
              method(:[]).to_proc
            end
          end

          refine ::Hash do
            include Method
          end

          def self.included(base)
            base.include Method
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyfill-0.6.0 lib/polyfill/v2_3/hash/instance/to_proc.rb