Permalink
Browse files

Document multiple proxy targets

  • Loading branch information...
nakajima committed Apr 3, 2009
1 parent 4c50719 commit 6432ad9074067420792f8a1eaf3fe0b8d4154396
Showing with 18 additions and 0 deletions.
  1. +18 −0 README.md
View
@@ -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>

0 comments on commit 6432ad9

Please sign in to comment.