Sha256: 6f7425da0259bd3a65aa2efaf726fa3127f11c283e9a93107209085df1d9508d
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
require "pry-remote" # Example: # # require 'pry-remote-auto' # # class Foo # def initialize(x, y) # binding.remote_pry # end # end # # Foo.new 10, 20 # class Object def remote_pry_with_auto_launch(*args) Thread.start do sleep 1 system 'osascript', '-e', 'tell application "Terminal" to do script "pry-remote"' end remote_pry_without_auto_launch(*args) end alias_method :remote_pry_without_auto_launch, :remote_pry alias_method :remote_pry, :remote_pry_with_auto_launch alias_method :pry_remote, :remote_pry end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pry-remote-auto-1.1.0 | lib/pry-remote-auto.rb |