Module: Pry::Loudmouth
- Defined in:
- lib/pry/loudmouth/version.rb,
lib/pry/loudmouth.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.add_after_hook! ⇒ Object
11 12 13 14 15 |
# File 'lib/pry/loudmouth.rb', line 11 def self.add_after_hook! Pry.hooks.add_hook :after_session, 'pry-loudmouth:pry_has_left_the_building' do Process.setproctitle 'ruby' end end |
.add_before_hook! ⇒ Object
4 5 6 7 8 9 |
# File 'lib/pry/loudmouth.rb', line 4 def self.add_before_hook! Pry.hooks.add_hook :before_session, 'pry-loudmouth:announce_entrance' do |a,b,c| print "\a" Process.setproctitle 'pry' end end |