From 85ad0e2b9aa383fc3d152000b57633ad7e270af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 8 Jan 2013 16:41:49 +0100 Subject: add Node#meth, remove attr_reader options --- lib/zorglub/node.rb | 8 ++++++-- 1 file 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 -- cgit v1.1-2-g2b99