Class: Sanctify::Matcher
- Inherits:
-
Object
- Object
- Sanctify::Matcher
- Defined in:
- lib/sanctify/matcher.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#regex ⇒ Object
readonly
Returns the value of attribute regex.
Instance Method Summary collapse
- #disabled? ⇒ Boolean
-
#initialize(id, description, regex, disabled: false) ⇒ Matcher
constructor
A new instance of Matcher.
Constructor Details
#initialize(id, description, regex, disabled: false) ⇒ Matcher
Returns a new instance of Matcher.
4 5 6 7 8 9 |
# File 'lib/sanctify/matcher.rb', line 4 def initialize(id, description, regex, disabled: false) @id = id @description = description @regex = regex @disabled = disabled end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/sanctify/matcher.rb', line 3 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/sanctify/matcher.rb', line 3 def id @id end |
#regex ⇒ Object (readonly)
Returns the value of attribute regex.
3 4 5 |
# File 'lib/sanctify/matcher.rb', line 3 def regex @regex end |
Instance Method Details
#disabled? ⇒ Boolean
11 12 13 |
# File 'lib/sanctify/matcher.rb', line 11 def disabled? @disabled end |