mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
updated docs, added info, fixed typos
This commit is contained in:
parent
02af19e4e9
commit
9d7058d837
2 changed files with 6 additions and 4 deletions
|
@ -12,7 +12,7 @@ manipulation of objects during the running of a program.
|
|||
* Read the [documentation](http://rdoc.info/github/banister/pry/master/file/README.markdown)
|
||||
* See the [source code](http://github.com/banister/pry)
|
||||
|
||||
example: prying on an object at runtime
|
||||
example: Interacting with an object at runtime
|
||||
---------------------------------------
|
||||
|
||||
With the `Pry.into()` method we can pry (open an irb-like session) on
|
||||
|
@ -91,6 +91,8 @@ Features:
|
|||
* Pry can be invoked at any time and on any object in the running program.
|
||||
* Pry sessions can nest arbitrarily deeply -- to go back one level of nesting type 'exit' or 'quit'
|
||||
* Pry has multi-line support built in.
|
||||
* Pry is not based on the IRB codebase.
|
||||
* Pry is Only 120 LOC.
|
||||
* Pry implements all the methods in the REPL chain separately: `Pry.r`
|
||||
for reading; `Pry.re` for eval; `Pry.rep` for printing; and `Pry.repl`
|
||||
for the loop (`Pry.into` is simply an alias for `Pry.repl`). You can
|
||||
|
|
|
@ -94,12 +94,12 @@ module Pry
|
|||
end
|
||||
|
||||
def self.prompt(eval_string, target)
|
||||
context = target.eval('self')
|
||||
target_self = target.eval('self')
|
||||
|
||||
if eval_string.empty?
|
||||
default_prompt.call(context)
|
||||
default_prompt.call(target_self)
|
||||
else
|
||||
wait_prompt.call(context)
|
||||
wait_prompt.call(target_self)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue