Skip to content

Instantly share code, notes, and snippets.

@jusleg
Created April 1, 2024 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jusleg/eeef5423121f18328bea3990ce3947a8 to your computer and use it in GitHub Desktop.
Save jusleg/eeef5423121f18328bea3990ce3947a8 to your computer and use it in GitHub Desktop.
require 'pry'
# Extend the Binding class with the loud_pry method
class Binding
def loud_pry()
# Play the sound
`afplay /System/Library/Sounds/Purr.aiff`
# Announce the activation
`say "binding loud pry activated"`
# Start the Pry session in the context of the binding
Pry.start(self)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment