mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Adjust some new features wording/examples. (#9183)
* Reword Range#overlap? docs last paragraph. * Docs: add explanation about Queue#freeze * Docs: Add :rescue event docs for TracePoint * Docs: Enhance Module#set_temporary_name documentation * Docs: Slightly expand Process::Status deprecations * Fix MatchData#named_captures rendering glitch * Improve Dir.fchdir examples * Adjust Refinement#target docs
This commit is contained in:
parent
d3deb1b823
commit
570d7b2c3e
8 changed files with 65 additions and 47 deletions
|
@ -576,7 +576,6 @@ proc_get_ppid(VALUE _)
|
|||
* stat = $? # => #<Process::Status: pid 1262862 exit 99>
|
||||
* stat.class # => Process::Status
|
||||
* stat.to_i # => 25344
|
||||
* stat >> 8 # => 99
|
||||
* stat.stopped? # => false
|
||||
* stat.exited? # => true
|
||||
* stat.exitstatus # => 99
|
||||
|
@ -878,7 +877,9 @@ pst_equal(VALUE st1, VALUE st2)
|
|||
* call-seq:
|
||||
* stat & mask -> integer
|
||||
*
|
||||
* This method is deprecated; use other attribute methods.
|
||||
* This method is deprecated as #to_i value is system-specific; use
|
||||
* predicate methods like #exited? or #stopped?, or getters like #exitstatus
|
||||
* or #stopsig.
|
||||
*
|
||||
* Returns the logical AND of the value of #to_i with +mask+:
|
||||
*
|
||||
|
@ -930,7 +931,9 @@ pst_bitand(VALUE st1, VALUE st2)
|
|||
* call-seq:
|
||||
* stat >> places -> integer
|
||||
*
|
||||
* This method is deprecated; use other predicate methods.
|
||||
* This method is deprecated as #to_i value is system-specific; use
|
||||
* predicate methods like #exited? or #stopped?, or getters like #exitstatus
|
||||
* or #stopsig.
|
||||
*
|
||||
* Returns the value of #to_i, shifted +places+ to the right:
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue