Sha256: 41334869ba348eb60045a490b64d189021e4417d04cdea0c4912cef85237b482

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

require "pry/loudmouth/version"

module Pry::Loudmouth
  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

  def self.add_after_hook!
    Pry.hooks.add_hook :after_session, 'pry-loudmouth:pry_has_left_the_building' do
      Process.setproctitle 'ruby'
    end
  end
end

Pry::Loudmouth.add_before_hook!
Pry::Loudmouth.add_after_hook!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pry-loudmouth-0.1.0 lib/pry/loudmouth.rb