Class: Valise::DirGlob

Inherits:
PathMatcher show all
Defined in:
lib/valise/path-matcher.rb

Instance Attribute Summary

Attributes inherited from PathMatcher

#segment

Instance Method Summary collapse

Methods inherited from PathMatcher

#[], #[]=, #each_pair, #merge!, #retreive, #store

Methods included from Unpath

#repath, #unpath

Constructor Details

#initializeDirGlob

Returns a new instance of DirGlob.



78
79
80
# File 'lib/valise/path-matcher.rb', line 78

def initialize
  super('**')
end

Instance Method Details

#access(segments) ⇒ Object



86
87
88
89
90
91
92
# File 'lib/valise/path-matcher.rb', line 86

def access(segments)
  if segments.empty?
    return nil
  else
    super || access(segments.drop(1))
  end
end

#match?(segment) ⇒ Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/valise/path-matcher.rb', line 82

def match?(segment)
  true
end