$18 GRAYBYTE WORDPRESS FILE MANAGER $29

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/ruby18/share/ri/1.8/system/UnboundMethod/

HOME
Current File : /opt/alt/ruby18/share/ri/1.8/system/UnboundMethod//bind-i.yaml
--- !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 &quot;In test, class = #{self.class}&quot;\n     end\n   end\n   class B &lt; A\n   end\n   class C &lt; 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


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.50 PM
root / linksafe
0755
%3d%3d-i.yaml
0.325 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
arity-i.yaml
1.253 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
bind-i.yaml
0.944 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
cdesc-UnboundMethod.yaml
2.132 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
clone-i.yaml
0.227 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
inspect-i.yaml
0.432 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
name-i.yaml
0.256 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
owner-i.yaml
0.288 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
to_s-i.yaml
0.426 KB
26 Jul 2023 1.47 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF