mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
A following spec will raise an ArgumentError.
describe "Application 'test'" do
it "has one window"
end
`instance_eval' will pass a receiver object into block.
When use a block which created by lambda, it should accept a receiver object as block parameter.
b = lambda { self.upcase }
"test".instance_eval(&b) #=> wrong number of arguments (1 for 0) (ArgumentError)