REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 967 B
Close
//proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/UnboundMethod/bind-i.yaml
Text
Base64
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Bind <em>umeth</em> to <em>obj</em>. If <tt>Klass</tt> was the class from which <em>umeth</em> was obtained, <tt>obj.kind_of?(Klass)</tt> must be true. - !ruby/struct:SM::Flow::VERB body: " class A\n def test\n puts "In test, class = #{self.class}"\n end\n end\n class B < A\n end\n class C < B\n end\n\n um = B.instance_method(:test)\n bm = um.bind(C.new)\n bm.call\n bm = um.bind(B.new)\n bm.call\n bm = um.bind(A.new)\n bm.call\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " In test, class = C\n In test, class = B\n prog.rb:16:in `bind': bind argument must be an instance of B (TypeError)\n from prog.rb:16\n" full_name: UnboundMethod#bind is_singleton: false name: bind params: | umeth.bind(obj) -> method visibility: public
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
%3d%3d-i.yaml
333 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
arity-i.yaml
1.25 KB
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
bind-i.yaml
967 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cdesc-UnboundMethod.yaml
2.13 KB
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
clone-i.yaml
232 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
inspect-i.yaml
442 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
name-i.yaml
262 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
owner-i.yaml
295 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
to_s-i.yaml
436 B
lrw-r--r--
2023-07-26 13:47:20
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).