Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Document multiple proxy targets

  • Loading branch information...
commit 6432ad9074067420792f8a1eaf3fe0b8d4154396 1 parent 4c50719
@nakajima authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 README.md
View
18 README.md
@@ -53,6 +53,8 @@ You can also use a Proc:
end
end
+## Blank Slate Proxies
+
You can also make the class a blank slate, meaning *everything* will be proxied:
class Something
@@ -65,6 +67,22 @@ You can also make the class a blank slate, meaning *everything* will be proxied:
Something.new.inspect # Proxied to other_thing
+## Multiple Proxy Targets
+
+To specify multiple proxy targets, just pass them all:
+
+ class Something
+ proxy_to :other_thing, :something_else
+
+ def other_thing
+ # Whatever
+ end
+
+ def something_else
+ # And again
+ end
+ end
+
That's all for now.
<pre>
Please sign in to comment.
Something went wrong with that request. Please try again.