If you still want to use lambda, this code will work:
block = lambda { "Hello" } # or -> { "Hello" } some_obj.instance_exec(&block)
instance_exec contrary to instance_eval will not supply self as an argument for this block, so the wrong number of arguments (1 for 0) will not be selected.
Look here for more information.
yukas
source share