This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HouseDetail | |
def foo | |
return [1,2,3] | |
end | |
end | |
class KeyInvoker | |
instance_methods.reject {|meth| meth.to_s =~ /^_/ }.each { |meth| undef_method(meth.to_sym) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this method the MyApp::Application class (in config/application.rb) | |
def load_console(sandbox=false) | |
super | |
project_specific_irbrc = File.join(Rails.root, ".irbrc") | |
puts "Loading project specific .irbrc ..." | |
load(project_specific_irbrc) if File.exists?(project_specific_irbrc) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes.rb" | |
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui.rb" | |
result = TextMate::UI.request_string( | |
:title => 'Open Rubygem', | |
:prompt => 'Name of the gem to open', | |
:default => ENV['TM_CURRENT_WORD'] || "", | |
:button1 => 'Open' |
NewerOlder