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

removed all instances of old opts[:arg_string]

This commit is contained in:
John Mair 2011-05-30 15:57:06 +12:00
parent 458540811a
commit ef6eeb06b4
3 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ class Pry
command "import", "Import a command set" do |command_set_name|
next output.puts "Provide a command set name" if command_set.nil?
set = target.eval(opts[:arg_string])
set = target.eval(arg_string)
Pry.active_instance.commands.import set
end

View file

@ -14,7 +14,7 @@ class Pry
end
command "play-string", "Play a string as input" do
Pry.active_instance.input = StringIO.new(opts[:arg_string])
Pry.active_instance.input = StringIO.new(arg_string)
end
command "play-method", "Play a method source as input" do |*args|

View file

@ -6,10 +6,10 @@ class Pry
command "define-command", "To honor Mon-Ouie" do |arg|
next output.puts("Provide an arg!") if arg.nil?
prime_string = "command #{opts[:arg_string]}\n"
prime_string = "command #{arg_string}\n"
command_string = Pry.active_instance.r(target, prime_string)
opts[:eval_string].replace <<-HERE
eval_string.replace <<-HERE
_pry_.commands.instance_eval do
#{command_string}
end