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

Constant Summary

Constants included from Behavior

Behavior::ASSIGNMENT, Behavior::NODUP

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from Behavior

#==, #[], #[]=, #_dup, #clear, #default, #default_for, #forget, included, #initialize, #key?, #keys, #merge!, #method_missing, #respond_to_missing?, #to_hash, #try_convert_to_hash

Dynamic Method Handling

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

Class Method Details

+ (Object) shortcuts



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

def self.shortcuts
  Convenience::SHORTCUTS
end

Instance Method Details

- (Object) hooks=(hooks)

FIXME



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