method
new
ruby latest stable - Class:
Shell
new(pwd = Dir.pwd, umask = nil)public
Creates a Shell object which current directory is set to the process current directory, unless otherwise specified by the pwd argument.
# File lib/shell.rb, line 184
def initialize(pwd = Dir.pwd, umask = nil)
@cwd = File.expand_path(pwd)
@dir_stack = []
@umask = umask
@system_path = Shell.default_system_path
@record_separator = Shell.default_record_separator
@command_processor = CommandProcessor.new(self)
@process_controller = ProcessController.new(self)
@verbose = Shell.verbose
@debug = Shell.debug
end