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

added ni_arg_string and ni_val for non interpolated versions of val and arg_string command options

This commit is contained in:
John Mair 2011-05-06 15:34:00 +12:00
parent 933ce7b355
commit c7de349c02

View file

@ -118,6 +118,7 @@ class Pry
# no command was matched, so return to caller
return if !pry_command?(val)
ni_val = val.dup
val.replace interpolate_string(val, target)
command, args_string = command_matched(val)
@ -125,6 +126,9 @@ class Pry
options = {
:val => val,
:arg_string => Pry::Helpers::BaseHelpers.remove_first_word(val),
:ni_val => ni_val,
:ni_arg_string => Pry::Helpers::BaseHelpers.remove_first_word(ni_val),
:eval_string => eval_string,
:nesting => nesting,
:commands => commands.commands