Sha256: e0a1c88125d87c6682f40f1960948cd59d4176ae37013fb8715ead7ee990f5b0

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 Bytes

Contents

require "iolite/adaptor/all"
require "iolite/functinal/invoke"

module Iolite module Refinements
	module Hash
		refine ::Hash do
			include Iolite::Adaptor::ToProc
			include Iolite::Adaptor::Bind
			include Iolite::Adaptor::Apply
			include Iolite::Adaptor::Callable
			def call *args
				Hash[ self.map { |key, value|
					Iolite::Functinal.invoke_a([key, value], *args)
				} ]
			end
		end
	end
end end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iolite-0.0.3 lib/iolite/refinements/hash.rb
iolite-0.0.2 lib/iolite/refinements/hash.rb
iolite-0.0.1 lib/iolite/refinements/hash.rb