module Shoulda::Matchers::ActiveModel::Qualifiers::AllowBlank
@private
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/shoulda/matchers/active_model/qualifiers/allow_blank.rb, line 7 def initialize(*args) super @expects_to_allow_blank = false end
Public Instance Methods
allow_blank()
click to toggle source
# File lib/shoulda/matchers/active_model/qualifiers/allow_blank.rb, line 12 def allow_blank @expects_to_allow_blank = true self end
Protected Instance Methods
expects_to_allow_blank?()
click to toggle source
# File lib/shoulda/matchers/active_model/qualifiers/allow_blank.rb, line 19 def expects_to_allow_blank? @expects_to_allow_blank end