Sha256: d5e408f860a454216c4a4e846c1eae4bf845910b67d9311c5f424e0cc08a082f
Contents?: true
Size: 236 Bytes
Versions: 23
Compression:
Stored size: 236 Bytes
Contents
describe "Keyword arguments" do def m a, b = nil, c: 123 [a, b, c] end it "def method_a(b, c=nil, d:nil)" do m(1,2,c: 3).should == [1, 2, 3] m(1, c: 3).should == [1, nil, 3] m(1).should == [1, nil, 123] end end
Version data entries
23 entries across 23 versions & 1 rubygems