Author: assaf
Date: Mon Feb 25 12:49:11 2008
New Revision: 630985

URL: http://svn.apache.org/viewvc?rev=630985&view=rev
Log:
include/exclude methods return self for easy chaining

Modified:
    incubator/buildr/trunk/lib/tasks/zip.rb

Modified: incubator/buildr/trunk/lib/tasks/zip.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/tasks/zip.rb?rev=630985&r1=630984&r2=630985&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/tasks/zip.rb (original)
+++ incubator/buildr/trunk/lib/tasks/zip.rb Mon Feb 25 12:49:11 2008
@@ -177,13 +177,16 @@
       def initialize(expanders)
         @expanders = expanders
       end
+
       def include(*files)
         @expanders.each { |expander| expander.include(*files) }
+        self
       end
       alias :<< :include
-      
+
       def exclude(*files)
         @expanders.each { |expander| expander.exclude(*files) }
+        self
       end
     end
 


Reply via email to