# File lib/main/stdext.rb, line 2 def singleton_class object = self, &block sc = class << object self end block ? sc.module_eval(&block) : sc end