lib/refinements/pathnames.rb in refinements-10.1.1 vs lib/refinements/pathnames.rb in refinements-11.0.0
- old
+ new
@@ -22,12 +22,10 @@
else
new Dir.mktmpdir([prefix, suffix], root)
end
end
- def require_tree root, pattern = "**/*.rb"
- new(root).files(pattern).each { |path| require path.to_s }
- end
+ def require_tree(root) = new(root).files("**/*.rb").each { |path| require path.to_s }
def root = new(File::SEPARATOR)
end
refine Pathname do