⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.25
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Delegator
/
View File Name :
cdesc-Delegator.ri
U:RDoc::NormalClass[iI"Delegator:ET@I"BasicObject;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[ I"OThis library provides three different ways to delegate method calls to an ;TI"Lobject. The easiest to use is SimpleDelegator. Pass an object to the ;TI"Rconstructor and all methods supported by the object will be delegated. This ;TI"!object can be changed later.;To:RDoc::Markup::BlankLine o; ;[I"SGoing a step further, the top level DelegateClass method allows you to easily ;TI"Lsetup delegation through class inheritance. This is considerably more ;TI"Eflexible and thus probably the most common use for this library.;T@o; ;[ I"SFinally, if you need full control over the delegation scheme, you can inherit ;TI"Nfrom the abstract class Delegator and customize as needed. (If you find ;TI"Pyourself needing this control, have a look at Forwardable which is also in ;TI";the standard library. It may suit your needs better.);T@o; ;[I"MSimpleDelegator's implementation serves as a nice example of the use of ;TI"Delegator:;T@o:RDoc::Markup::Verbatim;[I"require 'delegate' ;TI" ;TI"'class SimpleDelegator < Delegator ;TI" def __getobj__ ;TI"I @delegate_sd_obj # return object we are delegating to, required ;TI" end ;TI" ;TI" def __setobj__(obj) ;TI"< @delegate_sd_obj = obj # change delegation object, ;TI"< # a feature we're providing ;TI" end ;TI" end ;T:@format0S:RDoc::Markup::Heading: leveli: textI" Notes;T@o; ;[I"8Be advised, RDoc will not detect delegated methods.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [U:RDoc::Constant[i I"VERSION;TI"Delegator::VERSION;T:public0o;;[ ;@6;0@6@cRDoc::NormalClass0U;[i I"KERNEL_RESPOND_TO;TI"!Delegator::KERNEL_RESPOND_TO;T:private0o;;[ ;@6;0@6@@?0[ [[I" class;T[[;[[I"new;TI"lib/delegate.rb;T[:protected[ [;[ [I" instance;T[[;[[I"!;T@O[I"!=;T@O[I"==;T@O[I"__getobj__;T@O[I"__raise__;T@O[I"__setobj__;T@O[I" eql?;T@O[I"freeze;T@O[I"marshal_dump;T@O[I"marshal_load;T@O[I"method_missing;T@O[I"methods;T@O[I"protected_methods;T@O[I"public_methods;T@O[I" raise;T@O[I"respond_to_missing?;T@O[;[ [;[[I"target_respond_to?;T@O[ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@6@6cRDoc::TopLevel