So, I want to define a singleton method for an object, but I want to do it using a closure.
For example,
def define_say(obj, msg) def obj.say p
Object#define_singleton_method was added to ruby-1.9.2 by the way:
def define_say(obj, msg) obj.define_singleton_method(:say) do puts msg end end