diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-01-08 16:41:49 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-01-08 16:41:49 +0100 |
commit | 85ad0e2b9aa383fc3d152000b57633ad7e270af2 (patch) | |
tree | ccd9e44fb8be105f4c973ca0ae28365e11395297 /lib | |
parent | 0f9b16f6df09fd835e55bd72898806b27ec93e3f (diff) | |
download | zorglub-85ad0e2b9aa383fc3d152000b57633ad7e270af2.zip zorglub-85ad0e2b9aa383fc3d152000b57633ad7e270af2.tar.gz |
add Node#meth, remove attr_reader options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zorglub/node.rb | 8 |
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 |