mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fixed documentation for Pry#re
This commit is contained in:
parent
0c5cefd7fc
commit
0aae812f3b
1 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,8 @@ class Pry
|
||||||
# If no parameter is given, default to top-level (main).
|
# If no parameter is given, default to top-level (main).
|
||||||
# @param [Object, Binding] target The receiver of the read-eval-print
|
# @param [Object, Binding] target The receiver of the read-eval-print
|
||||||
# @return [Object] The result of the eval or an `Exception` object in case of
|
# @return [Object] The result of the eval or an `Exception` object in case of
|
||||||
# error. In the latter case, you can check whether the exception
|
# error. In the latter case, you can check whether the exception was raised
|
||||||
|
# or is just the result of the expression using #last_result_is_exception?
|
||||||
# @example
|
# @example
|
||||||
# Pry.new.re(Object.new)
|
# Pry.new.re(Object.new)
|
||||||
def re(target=TOPLEVEL_BINDING)
|
def re(target=TOPLEVEL_BINDING)
|
||||||
|
|
Loading…
Reference in a new issue