Class: Matchd::Rule::Invalid
- Inherits:
-
Matchd::Rule
- Object
- Matchd::Rule
- Matchd::Rule::Invalid
- Defined in:
- lib/matchd/rule/invalid.rb
Overview
Placeholder class for marking keeping invalid Rules around for later inspection. It overwrited the entire public interface of Matchd::Rule to no-operations
Constant Summary
Constants inherited from Matchd::Rule
NotImplementedError, REGEXP_MATCHER, REGEXP_OPTIONS
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#call ⇒ FalseClass
Noop.
-
#initialize(options) ⇒ Invalid
constructor
A new instance of Invalid.
-
#matches? ⇒ FalseClass
Noop.
-
#visit ⇒ FalseClass
Noop.
Methods inherited from Matchd::Rule
#match_name, #match_resource_classes, parse_match, parse_resource_class, #visit!
Constructor Details
#initialize(options) ⇒ Invalid
Returns a new instance of Invalid.
5 6 7 |
# File 'lib/matchd/rule/invalid.rb', line 5 def initialize() @raw = end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
8 9 10 |
# File 'lib/matchd/rule/invalid.rb', line 8 def raw @raw end |
Instance Method Details
#call ⇒ FalseClass
Noop
23 |
# File 'lib/matchd/rule/invalid.rb', line 23 def call(*); false end |
#matches? ⇒ FalseClass
Noop
18 |
# File 'lib/matchd/rule/invalid.rb', line 18 def matches?(*); false end |
#visit ⇒ FalseClass
Noop
13 |
# File 'lib/matchd/rule/invalid.rb', line 13 def visit(*); false end |