Class: Pry::Config

Inherits:
Object show all
Includes:
Behavior
Defined in:
lib/pry/config.rb

Defined Under Namespace

Modules: Behavior, Convenience Classes: Default

Constant Summary

Constants included from Behavior

Behavior::ASSIGNMENT, Behavior::INSPECT_REGEXP, Behavior::NODUP

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Behavior

#==, #[], #[]=, #clear, #default, #forget, included, #initialize, #inspect, #key?, #keys, #merge!, #method_missing, #pretty_print, #respond_to_missing?, #to_hash

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Pry::Config::Behavior

Class Method Details

.shortcutsObject



7
8
9
# File 'lib/pry/config.rb', line 7

def self.shortcuts
  Convenience::SHORTCUTS
end

Instance Method Details

#hooks=(hooks) ⇒ Object

FIXME

Parameters:



15
16
17
18
19
20
21
22
23
# File 'lib/pry/config.rb', line 15

def hooks=(hooks)
  if hooks.is_a?(Hash)
    warn "Hash-based hooks are now deprecated! Use a `Pry::Hooks` object " \
         "instead! http://rubydoc.info/github/pry/pry/master/Pry/Hooks"
    self["hooks"] = Pry::Hooks.from_hash(hooks)
  else
    self["hooks"] = hooks
  end
end