Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pry.commands.alias_command 'wh', 'whereami'
- if defined?(PryNav)
- Pry.commands.alias_command 'c', 'continue'
- Pry.commands.alias_command 's', 'step'
- Pry.commands.alias_command 'n', 'next'
- end
- if defined?(PryByebug)
- Pry.commands.alias_command 'c', 'continue'
- Pry.commands.alias_command 's', 'step'
- Pry.commands.alias_command 'n', 'next'
- Pry.commands.alias_command 'f', 'finish'
- end
- if defined?(PryDebugger)
- Pry.commands.alias_command 'c', 'continue'
- Pry.commands.alias_command 's', 'step'
- Pry.commands.alias_command 'n', 'next'
- Pry.commands.alias_command 'f', 'finish'
- end
- if defined?(PryStackExplorer)
- Pry.commands.alias_command 'ss', 'show-stack'
- Pry.commands.alias_command 'fr', 'frame'
- end
- def what_methods(obj)
- (obj.public_methods - Object.public_methods - Object.instance_methods).sort
- end
- def wm(obj)
- what_methods(obj)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement