ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- __setobj__-i.ri000064400000000567152353045270007426 0ustar00U:RDoc::AnyMethod[iI"__setobj__:EFI"Delegator#__setobj__;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"QThis method must be overridden by subclasses and change the object delegate ;TI"to _obj_.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I" (obj);T@FI"Delegator;TcRDoc::NormalClass00respond_to_missing%3f-i.ri000064400000000652152353045270011542 0ustar00U:RDoc::AnyMethod[iI"respond_to_missing?:EFI""Delegator#respond_to_missing?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"PChecks for a method provided by this the delegate object by forwarding the ;TI"!call through \_\_getobj\_\_.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I"(m, include_private);T@FI"Delegator;TcRDoc::NormalClass00untrust-i.ri000064400000000516152353045270007062 0ustar00U:RDoc::GhostMethod[iI" untrust:ETI"Delegator#untrust;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"AUntrust both the object returned by \_\_getobj\_\_ and self.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I";T@FI"Delegator;TcRDoc::NormalClass00cdesc-Delegator.ri000064400000004567152353045270010107 0ustar00U: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::BlankLineo; ;[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 if the use of ;TI"Delegator:;T@o:RDoc::Markup::Verbatim;[I"'class SimpleDelegator < Delegator ;TI" def initialize(obj) ;TI"N super # pass obj to Delegator constructor, required ;TI"; @delegate_sd_obj = obj # store obj for future use ;TI" end ;TI" ;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[[[[[I" class;T[[: public[[I"new;TI"lib/delegate.rb;T[:protected[[: private[[I" instance;T[[;[[I"!;T@E[I"!=;T@E[I"==;T@E[I"__getobj__;F@E[I"__setobj__;F@E[I" freeze;T@E[I"marshal_dump;F@E[I"marshal_load;F@E[I"method_missing;F@E[I" methods;F@E[I"protected_methods;F@E[I"public_methods;F@E[I"respond_to_missing?;F@E[I" taint;T@E[I" trust;T@E[I" untaint;T@E[I" untrust;T@E[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@9@9cRDoc::TopLeveluntaint-i.ri000064400000000516152353045270007020 0ustar00U:RDoc::GhostMethod[iI" untaint:ETI"Delegator#untaint;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"AUntaint both the object returned by \_\_getobj\_\_ and self.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I";T@FI"Delegator;TcRDoc::NormalClass00__getobj__-i.ri000064400000000615152353045270007404 0ustar00U:RDoc::AnyMethod[iI"__getobj__:EFI"Delegator#__getobj__;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"OThis method must be overridden by subclasses and should return the object ;TI")method calls are being delegated to.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI"Delegator;TcRDoc::NormalClass00new-c.ri000064400000000571152353045270006122 0ustar00U:RDoc::AnyMethod[iI"new:ETI"Delegator::new;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"NPass in the _obj_ to delegate method calls to. All methods supported by ;TI" _obj_ will be delegated to.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I" (obj);T@FI"Delegator;TcRDoc::NormalClass00freeze-i.ri000064400000000513152353045270006613 0ustar00U:RDoc::GhostMethod[iI" freeze:ETI"Delegator#freeze;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"@Freeze both the object returned by \_\_getobj\_\_ and self.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I";T@FI"Delegator;TcRDoc::NormalClass00protected_methods-i.ri000064400000000656152353045270011057 0ustar00U:RDoc::AnyMethod[iI"protected_methods:EFI" Delegator#protected_methods;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HReturns the methods available to this delegate object as the union ;TI";of this object's and \_\_getobj\_\_ protected methods.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I"(all=true);T@TI"Delegator;TcRDoc::NormalClass00marshal_dump-i.ri000064400000000534152353045270010012 0ustar00U:RDoc::AnyMethod[iI"marshal_dump:EFI"Delegator#marshal_dump;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"ESerialization support for the object returned by \_\_getobj\_\_.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI"Delegator;TcRDoc::NormalClass00trust-i.ri000064400000000510152353045270006511 0ustar00U:RDoc::GhostMethod[iI" trust:ETI"Delegator#trust;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"?Trust both the object returned by \_\_getobj\_\_ and self.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I";T@FI"Delegator;TcRDoc::NormalClass00public_methods-i.ri000064400000000645152353045270010342 0ustar00U:RDoc::AnyMethod[iI"public_methods:EFI"Delegator#public_methods;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HReturns the methods available to this delegate object as the union ;TI"8of this object's and \_\_getobj\_\_ public methods.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I"(all=true);T@TI"Delegator;TcRDoc::NormalClass00taint-i.ri000064400000000510152353045270006447 0ustar00U:RDoc::GhostMethod[iI" taint:ETI"Delegator#taint;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"?Taint both the object returned by \_\_getobj\_\_ and self.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I";T@FI"Delegator;TcRDoc::NormalClass00methods-i.ri000064400000000620152353045270006775 0ustar00U:RDoc::AnyMethod[iI" methods:EFI"Delegator#methods;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HReturns the methods available to this delegate object as the union ;TI"1of this object's and \_\_getobj\_\_ methods.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I"(all=true);T@TI"Delegator;TcRDoc::NormalClass00%3d%3d-i.ri000064400000000505152353045270006203 0ustar00U:RDoc::AnyMethod[iI"==:ETI"Delegator#==;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"?Returns true if two objects are considered of equal value.;T: @fileI"lib/delegate.rb;T:0@omit_headings_from_table_of_contents_below000[I" (obj);T@FI"Delegator;TcRDoc::NormalClass00method_missing-i.ri000064400000000547152353045270010353 0ustar00U:RDoc::AnyMethod[iI"method_missing:EFI"Delegator#method_missing;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"