Dir
ruby/spec describes 39 methods in core/dir, and Metorex implements 36 of them. The parameters are what Method#parameters answers under Metorex.
Dir.[]: implemented, parameters[[:req, :args]]. Calls Dir.glob with argumentpatternsand the values of keyword argumentsbaseandsort; returns the array of selected entry names.Dir#chdir: implemented, parameters[[:block, :block]]. Changes the current working directory toself: An example calling it.Dir.chdir: implemented, parameters[[:req, :args]]. Changes the current working directory. An example calling it.Dir#children: implemented, parameters[]. Returns an array of the entry names inselfexcept for'.'and'..': An example calling it.Dir.children: implemented, parameters[[:req, :args]]. Returns an array of the entry names in the directory atdirpathexcept for'.'and'..'; sets the given encoding onto each returned entry name: An example calling it.Dir.chroot: implemented, parameters[[:req, :args]]. Changes the root directory of the calling process to that specified indirpath.Dir#close: implemented, parameters[]. Closes the stream inself, if it is open, and returnsnil; ignored ifselfis already closed: An example calling it.Dir.delete: implemented, parameters[[:req, :args]]. Removes the directory atdirpathfrom the underlying file system: An example calling it.Dir#each: implemented, parameters[[:block, :block]]. Calls the block with each entry name inself: An example calling it.Dir#each_child: implemented, parameters[[:block, :block]]. Calls the block with each entry name inselfexcept'.'and'..': An example calling it.Dir.each_child: implemented, parameters[[:req, :args]]. Like Dir.foreach, except that entries'.'and'..'are not included. An example calling it.Dir.empty?: implemented, parameters[[:req, :args]]. Returns whetherdirpathspecifies an empty directory: An example calling it.Dir.entries: implemented, parameters[[:rest]]. Returns an array of the entry names in the directory atdirpath; sets the given encoding onto each returned entry name: An example calling it.Dir.exist?: implemented, parameters[[:req, :args]]. Returns whetherdirpathis a directory in the underlying file system: An example calling it.Dir.exists?: not implemented.Dir.fchdir: implemented, parameters[[:req, :number]]. Changes the current working directory to the directory specified by the integer file descriptorfd.Dir#fileno: implemented, parameters[]. Returns the file descriptor used in dir. An example calling it.Dir.for_fd: implemented, parameters[[:req, :number]]. Returns a new Dir object representing the directory specified by the given integer directory file descriptorfd: An example calling it.Dir.foreach: implemented, parameters[[:req, :args]]. Calls the block with each entry name in the directory atdirpath; sets the given encoding onto each passedentry_name: An example calling it.Dir.getwd: implemented, parameters[[:req, :args]]. Returns the path to the current working directory:Dir.glob: implemented, parameters[[:req, :args]]. Forms an array entry_names of the entry names selected by the arguments. An example calling it.Dir.home: implemented, parameters[[:req, :args]]. Returns the home directory path of the user specified withuser_nameif it is notnil, or the current login user: An example calling it.Dir#initialize: implemented, parameters[[:req, :path], [:keyrest, :options]]. An example calling it.Dir#inspect: implemented, parameters[]. Returns a string description ofself: An example calling it.Dir.mkdir: implemented, parameters[[:req, :args]]. Creates a directory in the underlying file system atdirpathwith the givenpermissions; returns zero: An example calling it.Dir.open: implemented, parameters[[:req, :path], [:keyrest, :options], [:block, :block]]. Creates a new Dir object dir for the directory atdirpath. An example calling it.Dir#path: implemented, parameters[]. Returns thedirpathstring that was used to createself(ornilif created by method Dir.for_fd): An example calling it.Dir#pos: implemented, parameters[]. Returns the current position ofself; see Dir As Stream-Like: An example calling it.Dir#pos=: implemented, parameters[[:req, :position]]. Sets the position inselfand returnsposition.Dir.pwd: implemented, parameters[[:req, :args]]. Returns the path to the current working directory: An example calling it.Dir#read: implemented, parameters[]. Reads and returns the next entry name fromself; returnsnilif at end-of-stream; see Dir As Stream-Like: An example calling it.Dir#rewind: implemented, parameters[]. Sets the position inselfto zero; see Dir As Stream-Like: An example calling it.Dir.rmdir: implemented, parameters[[:req, :args]]. Removes the directory atdirpathfrom the underlying file system: An example calling it.Dir#scan: not implemented. An example calling it.Dir.scan: not implemented.Dir#seek: implemented, parameters[[:req, :position]]. Sets the position inselfand returnsself. An example calling it.Dir#tell: implemented, parameters[]. Returns the current position ofself; see Dir As Stream-Like: An example calling it.Dir#to_path: implemented, parameters[]. Returns thedirpathstring that was used to createself(ornilif created by method Dir.for_fd): An example calling it.Dir.unlink: implemented, parameters[[:req, :args]]. Removes the directory atdirpathfrom the underlying file system: An example calling it.
The method summaries are the first sentences of Ruby's own documentation for each method, read from MRI 4.0.6's ri data. Ruby's documentation is distributed under Ruby's license.