method
new
v1_8_7_72 -
Show latest stable
- Class:
Shell::Glob
new(sh, pattern)public
No documentation available.
# File lib/shell/builtin-command.rb, line 57
def initialize(sh, pattern)
super sh
@pattern = pattern
Thread.critical = true
back = Dir.pwd
begin
Dir.chdir @shell.cwd
@files = Dir[pattern]
ensure
Dir.chdir back
Thread.critical = false
end
end