Changeset 221
- Timestamp:
- 09/24/2007 12:35:03 (14 months ago)
- Location:
- trunk/lib
- Files:
-
- 2 modified
-
camping-unabridged.rb (modified) (2 diffs)
-
camping.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/camping-unabridged.rb
r219 r221 549 549 class NotFound < R() 550 550 def get(p) 551 r(404, Mab.new{h1 (P);h2 p + " not found"})551 r(404, Mab.new{h1 P;h2 p + " not found"}) 552 552 end 553 553 end … … 631 631 # input = Camping.qsp("post[id]=1&post[user]=_why") 632 632 # #=> {'post' => {'id' => '1', 'user' => '_why'}} 633 # 634 # And finally, Array syntax like: 635 # 636 # input = Camping.qsp("user[]=_why&user[]=lucky&user[]=stiff") 637 # #=> {"user" => ["_why", "lucky", "stiff"]} 633 638 # 634 639 def qsp(q, d='&;', y=nil, z=H[]) -
trunk/lib/camping.rb
r220 r221 1 1 %w[active_support markaby tempfile uri].map{|l|require l};module Camping;C=self 2 S=IO.read( f)rescue nil;P="Cam\ping Problem!";H=HashWithIndifferentAccess;class2 S=IO.read(__FILE__)rescue nil;P="Cam\ping Problem!";H=HashWithIndifferentAccess;class 3 3 H;def method_missing m,*a;m.to_s=~/=$/?self[$` 4 4 ]=a[0]:a==[]?self[m]:super end;alias u regular_update;end;module Helpers
