Class: LogStruct::ConfigStruct::FilterMatcher
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::ConfigStruct::FilterMatcher
- Extended by:
- T::Sig
- Defined in:
- lib/log_struct/config_struct/filters.rb
Instance Attribute Summary collapse
-
#callable ⇒ T.proc.params(key: String, value: T.untyped).returns(T::Boolean)
readonly
Returns the value of prop
callable. -
#label ⇒ String
readonly
Returns the value of prop
label.
Instance Method Summary collapse
Constructor Details
#initialize(callable:, label:) ⇒ void
|
|
# File '' const :callable, T.proc.params(key: String, value: T.untyped).returns(T::Boolean) const :label, String |
Instance Attribute Details
#callable ⇒ T.proc.params(key: String, value: T.untyped).returns(T::Boolean) (readonly)
Returns the value of prop callable.
|
|
# File '' const :callable, T.proc.params(key: String, value: T.untyped).returns(T::Boolean) |
#label ⇒ String (readonly)
Returns the value of prop label.
|
|
# File '' const :label, String |
Instance Method Details
#matches?(key, value) ⇒ Boolean
13 14 15 |
# File 'lib/log_struct/config_struct/filters.rb', line 13 def matches?(key, value) callable.call(key, value) end |