class Pry::Config - pry-0.10.1 Documentation

# class Pry::Config

### Public Class Methods

shortcuts() click to toggle source

    # File lib/pry/config.rb, line 7
    def self.shortcuts
      Convenience::SHORTCUTS
    end

### Public Instance Methods

hooks=(hooks) click to toggle source

FIXME @param [Pry::Hooks] hooks

    # 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