module Shoulda::Matchers::ActiveModel::Qualifiers::AllowBlank
@private
Public Class Methods
Source
# File lib/shoulda/matchers/active_model/qualifiers/allow_blank.rb, line 7 def initialize(*args) super @expects_to_allow_blank = false end
Calls superclass method
Public Instance Methods
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
Source
# File lib/shoulda/matchers/active_model/qualifiers/allow_blank.rb, line 19 def expects_to_allow_blank? @expects_to_allow_blank end