Class: Pry

Inherits:
Object
  • Object
show all
Defined in:
lib/pry_ext.rb

Class Method Summary collapse

Class Method Details

.bind_key(key, options = {}, &block) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/pry_ext.rb', line 2

def self.bind_key(key, options = {}, &block)
  PryKeybind.unbind_all!(self)
  PryKeybind.register_anonymous(key, options, &block)
  PryKeybind.bind_all!(self)

  true
end