From: ts Date: 2008-02-24T23:34:01+09:00 Subject: Re: passing method references in python & ruby >>>>> "G" == Gregory Marton writes: G> so I think G> y = lambda{ yield } G> y.call{ 3 } G> perhaps, but no: G> LocalJumpError: no block given Wait for 1.9, it will be easy to do it. It's marked actually as an "known bug" in 1.9 vgs% more bootstraptest/test_knownbug.rb # # This test file concludes tests which point out known bugs. # So all tests will cause failure. # assert_equal 'ok', %q{ class C define_method(:foo) { if block_given? :ok else :ng end } end C.new.foo {} }, '[ruby-core:14813]' [...] vgs% Guy Decoux