Sha256: 213ea49de1afc036362658b5303cd1684e8b1b6341ba4055397e07410c2cbdbf

Contents?: true

Size: 629 Bytes

Versions: 25

Compression:

Stored size: 629 Bytes

Contents

module Pry::Config::Convenience
  SHORTCUTS = [
               :input,
               :output,
               :commands,
               :print,
               :exception_handler,
               :quiet?,
               :hooks,
               :color,
               :pager,
               :editor,
               :memory_size,
               :extra_sticky_locals
              ]


  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
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
whos_dated_who-0.1.0 vendor/bundle/gems/pry-0.10.0/lib/pry/config/convenience.rb
whos_dated_who-0.0.1 vendor/bundle/gems/pry-0.10.0/lib/pry/config/convenience.rb
pry-0.10.0 lib/pry/config/convenience.rb
pry-0.10.0-i386-mswin32 lib/pry/config/convenience.rb
pry-0.10.0-i386-mingw32 lib/pry/config/convenience.rb
pry-0.10.0-x64-mingw32 lib/pry/config/convenience.rb
pry-0.10.0-java lib/pry/config/convenience.rb
pry-0.10.0.rc1 lib/pry/config/convenience.rb
pry-0.10.0.rc1-i386-mswin32 lib/pry/config/convenience.rb
pry-0.10.0.rc1-i386-mingw32 lib/pry/config/convenience.rb
pry-0.10.0.rc1-x64-mingw32 lib/pry/config/convenience.rb
pry-0.10.0.rc1-java lib/pry/config/convenience.rb
pry-0.10.0.pre4 lib/pry/config/convenience.rb
pry-0.10.0.pre4-i386-mswin32 lib/pry/config/convenience.rb
pry-0.10.0.pre4-i386-mingw32 lib/pry/config/convenience.rb
pry-0.10.0.pre4-x64-mingw32 lib/pry/config/convenience.rb
pry-0.10.0.pre4-java lib/pry/config/convenience.rb
pry-0.10.0.pre3 lib/pry/config/convenience.rb
pry-0.10.0.pre3-i386-mswin32 lib/pry/config/convenience.rb
pry-0.10.0.pre3-i386-mingw32 lib/pry/config/convenience.rb