22 lines
340 B
Ruby
22 lines
340 B
Ruby
module Xgrep
|
|
class SimpleEnv
|
|
attr_accessor :pathspec
|
|
|
|
def initialize
|
|
@pathspec = { }
|
|
end
|
|
|
|
def update_pathspec ( pathspec )
|
|
files = %w{}
|
|
dirs = %w{.}
|
|
specs = %w{}
|
|
|
|
if pathspec.empty?
|
|
@pathspec = files + dirs + specs
|
|
else
|
|
@pathspec = pathspec
|
|
end
|
|
end
|
|
end
|
|
end
|