module Pry::Config::Convenience - pry-0.10.1 Documentation

# module Pry::Config::Convenience

### Constants

SHORTCUTS

### Public Instance Methods

config_shortcut(*names) click to toggle source

    # File lib/pry/config/convenience.rb, line 17
    def config_shortcut(*names)
      names.each do |name|
        reader = name
        setter = "#{name}="
        define_method(reader) { config.public_send(name) }
        define_method(setter) { |value| config.public_send(setter, value) }
      end
    end