1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib/pry/basic_object.rb
r-obert b5538b8501
Remove unnecessary classes / modules used by config (#1897)
* Remove` Pry::Config::Default`

* Remove `Pry::Config::Memoization`

* Remove confusing use of `instance_eval`

* Add `Pry::Config.defaults`
  Returns an instance of `Pry::Config`, initialized with Pry defaults.
  Replaces the previous role of `Pry::Config::Default`.
2018-12-01 08:51:52 +01:00

6 lines
185 B
Ruby

class Pry::BasicObject < BasicObject
[:Kernel, :File, :Dir, :LoadError, :ENV, :Pry].each do |constant|
const_set constant, ::Object.const_get(constant)
end
include Kernel
end