Class: Errata::Erratum::Reject

Inherits:
Errata::Erratum show all
Defined in:
lib/erratum/reject.rb

Instance Attribute Summary collapse

Attributes inherited from Errata::Erratum

#column, #errata, #options

Instance Method Summary collapse

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, options = {})
  super
  set_matching_expression(options.merge(:prefix => true))
end

Instance Attribute Details

#matching_expressionObject

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

#inspectObject



11
12
13
# File 'lib/erratum/reject.rb', line 11

def inspect
  super + " matching_expression=#{matching_expression}"
end