mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Add convenience method, pry_eval ⇒ pry_tester.eval
This commit is contained in:
parent
5f7cc2576e
commit
7ecfa6d58f
1 changed files with 4 additions and 0 deletions
|
@ -209,6 +209,10 @@ def pry_tester(context = TOPLEVEL_BINDING, &block)
|
|||
end
|
||||
end
|
||||
|
||||
def pry_eval(*eval_strs)
|
||||
pry_tester.eval(*eval_strs)
|
||||
end
|
||||
|
||||
class PryTester
|
||||
attr_reader :pry, :out
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue