Permalink
Browse files

Extend MiniRake::DSL module to prevent inheritance pollution

```include MiniRake::DSL``` on toplevel will pollute ancestor tree of every object.

```extend MiniRake::DSL``` will add those methods only to ```main``` object.

Rake does the same: https://github.com/jimweirich/rake/blob/master/lib/rake/dsl_definition.rb#L153
  • Loading branch information...
1 parent 8578cd6 commit c7c435cf2337582e8fb49dc0243cbd95820325c0 @brainopia brainopia committed Feb 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 minirake
View
@@ -287,7 +287,7 @@ module MiniRake
end
Rake = MiniRake
-include MiniRake::DSL
+extend MiniRake::DSL
######################################################################

0 comments on commit c7c435c

Please sign in to comment.