Module: Glob

Defined in:
lib/glob.rb,
lib/glob/map.rb,
lib/glob/object.rb,
lib/glob/matcher.rb,
lib/glob/version.rb,
lib/glob/symbolize_keys.rb

Defined Under Namespace

Modules: SymbolizeKeys Classes: Map, Matcher, Object

Constant Summary collapse

VERSION =
"0.5.0"

Class Method Summary collapse

Class Method Details

.filter(target, paths = ["*"]) ⇒ Object



10
11
12
13
14
# File 'lib/glob.rb', line 10

def self.filter(target, paths = ["*"])
  glob = new(target)
  paths.each {|path| glob.filter(path) }
  glob.to_h
end

.new(target = {}) ⇒ Object



16
17
18
# File 'lib/glob.rb', line 16

def self.new(target = {})
  Object.new(target)
end