Class: Cerbos::Hub::Stores::Input::FileFilter
- Inherits:
-
Object
- Object
- Cerbos::Hub::Stores::Input::FileFilter
- Defined in:
- lib/cerbos/hub/stores/input/file_filter.rb
Overview
A filter to match files when listing store contents.
Instance Attribute Summary collapse
-
#path ⇒ StringMatch?
readonly
Match files by path.
Instance Method Summary collapse
-
#initialize(path: nil) ⇒ FileFilter
constructor
Specify a filter to match files when listing store contents.
Constructor Details
#initialize(path: nil) ⇒ FileFilter
Specify a filter to match files when listing store contents.
18 19 20 |
# File 'lib/cerbos/hub/stores/input/file_filter.rb', line 18 def initialize(path: nil) @path = Cerbos::Input.coerce_optional(path, StringMatch) end |
Instance Attribute Details
#path ⇒ StringMatch? (readonly)
Match files by path.
13 14 15 |
# File 'lib/cerbos/hub/stores/input/file_filter.rb', line 13 def path @path end |