Skip to content

Instantly share code, notes, and snippets.

@benatkin
Created September 30, 2009 07:01
Show Gist options
  • Select an option

  • Save benatkin/197879 to your computer and use it in GitHub Desktop.

Select an option

Save benatkin/197879 to your computer and use it in GitHub Desktop.
require 'rubygems'
#require 'wirble'
#require 'pp'
#Wirble.init
#Wirble.colorize
alias q exit
class Object
def meth
(methods - Object.instance_methods).sort
end
end
module IRB
def self.result_format
conf[:PROMPT][conf[:PROMPT_MODE]][:RETURN]
end
def self.result_format=(str)
result_format.replace(str)
end
def self.repl
self.result_format = "=> %s\n"
end
def self.rel
self.result_format = ''
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment