lib/washout_builder/document/exception_model.rb
# Dirty hack to determine if a method has both a setter and a getter and not basic method inherited from Object class
#
# @param [String] method The method thats needs to be verified
# @return [Boolean] Returns true  if current class responds to the method and  has both a setter and a getter for that method and the method is not inherited from Object class
# @api public
Dirty hack to determine if a method has both a setter and a getter and not basic method inherited from Object class
Dirty hack to determine if a method has both a setter and a getter and not basic method inherited from Object class
def check_valid_fault_method?(method)
        method != :== && method != :! &&
            (instance_methods.include?(:"#{method}=") ||
                instance_methods.include?(:"#{method}")
            )
      end
def check_valid_fault_method? ( method ) method != :== && method != :! && ( instance_methods . include? ( :" #{ method } = " ) || instance_methods . include? ( :" #{ method } " ) ) end
Dirty hack to determine if a method has both a setter and a getter and not basic method inherited from Object class
Dirty hack to determine if a method has both a setter and a getter and not basic method inherited from Object class
Returns true if current class responds to the method and has both a setter and a getter for that method and the method is not inherited from Object class
Returns true if current class responds to the method and has both a setter and a getter for that method and the method is not inherited from Object class
Boolean
method
<not_specific>
<not_specific>
method The method thats needs to be verified
method The method thats needs to be verified
api
None