summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/zorglub/node.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 253d747..be035c6 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -127,6 +127,10 @@ module Zorglub
self.class.app
end
#
+ def meth
+ @options[:method]
+ end
+ #
def args
@options[:args]
end
@@ -136,7 +140,7 @@ module Zorglub
end
#
def r *args
- File.join map, (args.empty? ? @options[:method] : args.map { |x| x.to_s } )
+ File.join map, (args.empty? ? meth : args.map { |x| x.to_s } )
end
#
def html
@@ -250,7 +254,7 @@ module Zorglub
#
end
#
- attr_reader :options, :request, :response, :content, :mime
+ attr_reader :request, :response, :content, :mime
#
def initialize env, options
@env = env