March 2, 2014
5:31 p.m.
Yuriy Tymchuk wrote:
Hi guys.
When I run critics on my code i get: 'This block accepts 2 arguments, but was called with 1 argument.â. Iâm not sure whose problem it is, but the related block is [ :a :b | self menu: a shifted: b ]. Any ideas?
Uko
What method is the block being passed to ? It would seem that is expecting a block with one argument and you are passing in a block with two arguments. Try evaluating the following in Workspace.... [ :a :b | self menu: a shifted: b ] value [ :a :b | self menu: a shifted: b ] value: 1 cheers -ben