Created
April 1, 2024 22:22
-
-
Save jusleg/eeef5423121f18328bea3990ce3947a8 to your computer and use it in GitHub Desktop.
This file contains 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
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