# File lib/backports/1.9.1/kernel/define_singleton_method.rb, line 3 def define_singleton_method(*args, &block) class << self self end.send(:define_method, *args, &block) end