Take the 2008 Git User's Survey and help out! [ hide ]

ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Search Repo:
* move global method "min" to RequestBody class

there is no need to clutter global namespace for this method
Radarek (author)
Thu Jul 03 11:11:40 -0700 2008
commit  9f91df8ef53cab51bb3af57094aaab9a11351e30
tree    0f2399ee176728dd3f809aef31af016a43316246
parent  5d3ccde62d4e498d6d3873c1735f57afd94c742a
...
183
184
185
 
 
 
 
 
 
 
 
186
187
188
...
238
239
240
241
242
243
244
...
183
184
185
186
187
188
189
190
191
192
193
194
195
196
...
246
247
248
 
 
 
 
0
@@ -183,6 +183,14 @@ module Ebb
0
     def each(&block)
0
       raise NotImplemented
0
     end
0
+
0
+private
0
+
0
+ # cause i don't want to create an array
0
+ def min(a,b)
0
+ a > b ? b : a
0
+ end
0
+
0
   end
0
   
0
   
0
@@ -238,7 +246,3 @@ module Rack
0
   end
0
 end
0
 
0
-# cause i don't want to create an array
0
-def min(a,b)
0
- a > b ? b : a
0
-end

Comments

    No one has commented yet.