1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

rename 'state' local as 'default'.

This commit is contained in:
Robert Gleeson 2014-01-20 22:52:19 +01:00
parent c0dd290d4f
commit 0f8afdd010

View file

@ -1,5 +1,5 @@
class Pry::Config::Default < Pry::Config
state = {
default = {
:input => proc { Readline },
:output => proc { $stdout },
:commands => proc { Pry::Commands },
@ -49,12 +49,12 @@ class Pry::Config::Default < Pry::Config
configure_history
end
state.each do |key, value|
default.each do |key, value|
define_method(key) do
if state[key] == value
state[key] = value.call
if default[key] == value
default[key] = value.call
end
state[key]
default[key]
end
end