pry-doc icon indicating copy to clipboard operation
pry-doc copied to clipboard

support for prelude.rb

Open kyrylo opened this issue 13 years ago • 1 comments

Description by @jfirebaugh: banister/pry-doc#1

kyrylo avatar Aug 17 '12 02:08 kyrylo

Ruby-2.0.0-p0 supports Mutex#synchronize.

% pry
[1] pry(main)> pry-version
Pry version: 1.0.0.pre1 on Ruby 2.0.0.
[2] pry(main)> ? Mutex#synchronize

From: thread.c (C Method):
Owner: Mutex
Visibility: public
Signature: synchronize()
Number of lines: 2

Obtains a lock, runs the block, and releases the lock when the block
completes.  See the example under Mutex.

However, Thread.exclusive is still bugged.

[1] pry(main)> ? Thread.exclusive
Error: Could not load source for : No such file or directory - <internal:prelude>

kyrylo avatar Mar 21 '13 10:03 kyrylo