Changeset 171
- Timestamp:
- 10/12/2006 21:48:22 (2 years ago)
- Files:
-
- 1 modified
-
trunk/lib/camping.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/camping.rb
r170 r171 24 24 @k.dup,q.dup end;def service*a;@body=send(@method,*a)if respond_to?@method 25 25 @headers["Set-Cookie"]=@cookies.map{|k,v|"#{k}=#{C.escape(v)}; path=#{self/'/' 26 }"if v!=@k[k]}-[nil];self end;def to_s; "Status: #{@status}#{Z+@headers.map{|k,v|27 [*v].map{|x|"#{k}: #{x}"}}*Z+Z*2+@body}"end;end26 }"if v!=@k[k]}-[nil];self end;def to_s;a=[];@headers.map{|k,v|[*v].map{|x|a<< 27 "#{k}: #{x}"}};"Status: #{@status}#{Z+a*Z+Z*2+@body}"end;end 28 28 X=module Controllers;@r=[];class<<self;def r;@r;end;def R*u;r=@r;Class.new{ 29 29 meta_def(:urls){u};meta_def(:inherited){|x|r<<x}}end;def M;def M;end;constants.map{|c|
