Sha256: db451144f69ddc2336df7f2dbeb00db5ea685e3e285616d038fef00355aa88e5
Contents?: true
Size: 271 Bytes
Versions: 4
Compression:
Stored size: 271 Bytes
Contents
RSpec.describe Yaks::FP::Callable, "#to_proc" do it 'should delegate to_proc to method(:call)' do obj = Class.new do include Yaks::FP::Callable def call(x) x * x end end.new expect([1, 2, 3].map(&obj)).to eql [1, 4, 9] end end
Version data entries
4 entries across 4 versions & 1 rubygems