Skip to content

Instantly share code, notes, and snippets.

@jwaldrip
Last active December 16, 2015 20:59
Show Gist options
  • Save jwaldrip/5496033 to your computer and use it in GitHub Desktop.
Save jwaldrip/5496033 to your computer and use it in GitHub Desktop.
place in $HOME/.pryrc
#!/usr/bin/env ruby
[Method, UnboundMethod].each do |klass|
klass.class_eval do
def rubymine
path = source_location.join(':')
`mine #{path}`
nil
end
def sublime
path = source_location.join(':')
`subl #{path}`
nil
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment