diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-14 12:49:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-14 12:49:30 +0000 |
commit | d6dc676d07427e4c1459e9c7509329bb54cbdc7c (patch) | |
tree | 02b1ff7ce92874923cd7bf07097483b78e2e701b /lib/irb/context.rb | |
parent | 698407450b6a43e7295f19691fd0cf42d553b211 (diff) |
irb/{context,workspace}.rb: use local_variable_set
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/context.rb')
-rw-r--r-- | lib/irb/context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb index 07a65c87d1..1a06ebfad1 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -262,7 +262,7 @@ module IRB # to #last_value. def set_last_value(value) @last_value = value - @workspace.evaluate self, "_ = IRB.CurrentContext.last_value" + @workspace.local_variable_set :_, value end # Sets the +mode+ of the prompt in this context. |