lib/core/facets/module/revise.rb in facets-2.4.5 vs lib/core/facets/module/revise.rb in facets-2.5.0

- old
+ new

@@ -6,11 +6,11 @@ class Module # Return a new module based on another. # This includes the original module into the new one. # - # CREDIT: Trans + # CREDIT: Trans def revise(&blk) base = self nm = Module.new{ include base } nm.class_eval(&blk) @@ -44,10 +44,10 @@ # # This is like #revisal, but #revisal only # returns the reconstructred module. It does not # include it. # - # CREDIT: Trans + # CREDIT: Trans def integrate(mod, &block) #include mod.revisal( &blk ) m = Module.new{ include mod } m.class_eval(&block)