Class: Valise::DirGlob
- Inherits:
-
PathMatcher
- Object
- PathMatcher
- Valise::DirGlob
- Defined in:
- lib/valise/path-matcher.rb
Instance Attribute Summary
Attributes inherited from PathMatcher
Instance Method Summary collapse
- #access(segments) ⇒ Object
-
#initialize ⇒ DirGlob
constructor
A new instance of DirGlob.
- #match?(segment) ⇒ Boolean
Methods inherited from PathMatcher
#[], #[]=, #each_pair, #merge!, #retreive, #store
Methods included from Unpath
Constructor Details
#initialize ⇒ DirGlob
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
82 83 84 |
# File 'lib/valise/path-matcher.rb', line 82 def match?(segment) true end |