lib/ronin/url.rb in ronin-1.4.1 vs lib/ronin/url.rb in ronin-1.5.0.rc1

- old
+ new

@@ -179,21 +179,21 @@ end # # Searches for all URLs sharing a common sub-directory. # - # @param [String] sub_dir + # @param [String] root_dir # The sub-directory to search for. # # @return [Array<URL>] # The URL with the common sub-directory. # # @since 1.0.0 # # @api public # - def self.directory(sub_dir) - all(:path => sub_dir) | all(:path.like => "#{sub_dir}/%") + def self.directory(root_dir) + all(:path => root_dir) | all(:path.like => "#{root_dir}/%") end # # Searches for all URLs with a common file-extension. #