Module: Shoulda::Matchers::ActiveModel::Qualifiers::IgnoringInterferenceByWriter

Included in:
AllowValueMatcher, ValidationMatcher
Defined in:
lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ignore_interference_by_writerObject (readonly)

Returns the value of attribute ignore_interference_by_writer.



7
8
9
# File 'lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb', line 7

def ignore_interference_by_writer
  @ignore_interference_by_writer
end

Instance Method Details

#ignoring_interference_by_writer(value = :always) ⇒ Object



13
14
15
16
# File 'lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb', line 13

def ignoring_interference_by_writer(value = :always)
  @ignore_interference_by_writer.set(value)
  self
end

#initializeObject



9
10
11
# File 'lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb', line 9

def initialize(*)
  @ignore_interference_by_writer = IgnoreInterferenceByWriter.new
end