Sha256: 67b0075342f3884d73a6fc0cccb4ecfb1160b47461987e454f2f65e01b1d0858

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

require 'pry/loudmouth/version'

class Pry
  module Loudmouth
    def self.add_before_hook!
      Pry.hooks.add_hook :before_eval, 'pry-loudmouth:eval' do
        Process.setproctitle 'ruby'
      end
    end

    def self.add_after_hook!
      Pry.hooks.add_hook :after_eval, 'pry-loudmouth:all-done' do
        print "\a"
        Process.setproctitle 'pry'
      end
    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.2 lib/pry/loudmouth.rb