summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-16 17:35:06 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-16 17:35:06 +0200
commit2fde112c0033ec57bb7f5d7830f6e31021afd740 (patch)
tree8ee74b094cc664711f496e23023e02a6fe11b1c6
parentae5cd024e07960002f4f9bbae23b6ccb3b73b3eb (diff)
downloadzorglub-2fde112c0033ec57bb7f5d7830f6e31021afd740.zip
zorglub-2fde112c0033ec57bb7f5d7830f6e31021afd740.tar.gz
Node#r accepts string arguments
-rw-r--r--lib/zorglub/node.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 08214a3..fc74d7b 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -22,8 +22,9 @@ module Zorglub
@app.map location, self
end
#
- def r
+ def r *args
@r ||= @app.to self
+ File.join @r, *args
end
#
def call env