2 3 4
# File 'lib/core_extensions/object.rb', line 2 def umethods( regex = /.*/ ) (self.methods.sort - Object.new.methods).grep( regex ) end