Class: Cerbos::Hub::Stores::Input::StringMatch::Contains
- Inherits:
-
Cerbos::Hub::Stores::Input::StringMatch
- Object
- Cerbos::Hub::Stores::Input::StringMatch
- Cerbos::Hub::Stores::Input::StringMatch::Contains
- Defined in:
- lib/cerbos/hub/stores/input/string_match.rb
Overview
Filter to match a string by a substring.
Instance Attribute Summary collapse
-
#value ⇒ String
readonly
The substring to match.
Instance Method Summary collapse
-
#initialize(value:) ⇒ Contains
constructor
Specify a filter to match a string by a substring.
Constructor Details
#initialize(value:) ⇒ Contains
Specify a filter to match a string by a substring.
43 44 45 |
# File 'lib/cerbos/hub/stores/input/string_match.rb', line 43 def initialize(value:) @value = value end |
Instance Attribute Details
#value ⇒ String (readonly)
The substring to match.
38 39 40 |
# File 'lib/cerbos/hub/stores/input/string_match.rb', line 38 def value @value end |