Class: Errata::Erratum::Reject
- Inherits:
-
Errata::Erratum
- Object
- Errata::Erratum
- Errata::Erratum::Reject
- Defined in:
- lib/erratum/reject.rb
Instance Attribute Summary collapse
-
#matching_expression ⇒ Object
Returns the value of attribute matching_expression.
Attributes inherited from Errata::Erratum
Instance Method Summary collapse
- #correct! ⇒ Object
-
#initialize(errata, options = {}) ⇒ Reject
constructor
A new instance of Reject.
- #inspect ⇒ Object
Methods inherited from Errata::Erratum
#conditions_match?, #expression_matches?, #matching_methods, #set_matching_expression, #targets?
Constructor Details
#initialize(errata, options = {}) ⇒ Reject
Returns a new instance of Reject.
6 7 8 9 |
# File 'lib/erratum/reject.rb', line 6 def initialize(errata, = {}) super set_matching_expression(.merge(:prefix => true)) end |
Instance Attribute Details
#matching_expression ⇒ Object
Returns the value of attribute matching_expression.
4 5 6 |
# File 'lib/erratum/reject.rb', line 4 def matching_expression @matching_expression end |
Instance Method Details
#correct! ⇒ Object
15 16 17 |
# File 'lib/erratum/reject.rb', line 15 def correct! raise "rejections don't correct" end |
#inspect ⇒ Object
11 12 13 |
# File 'lib/erratum/reject.rb', line 11 def inspect super + " matching_expression=#{matching_expression}" end |