lib/washout_builder/document/exception_model.rb
# tries to fins all instance methods that have both a setter and a getter of the curent class
# @see #check_valid_fault_method?
# @return [Array<String>] An array with all the atrributes and instance methods that have both a setter and a getter
# @api public
tries to fins all instance methods that have both a setter and a getter of the curent class
tries to fins all instance methods that have both a setter and a getter of the curent class
def find_fault_attributes
        attrs = instance_methods(nil).map do |method|
          method.to_s if check_valid_fault_method?(method)
        end
        attrs = attrs.delete_if { |method| method.end_with?('=') && attrs.include?(method.delete('=')) }
        attrs.concat(%w(message backtrace))
      end
def find_fault_attributes attrs = instance_methods ( nil ) . map do | method | method . to_s if check_valid_fault_method? ( method ) end attrs = attrs . delete_if { | method | method . end_with? ( '=' ) && attrs . include? ( method . delete ( '=' ) ) } attrs . concat ( %w( message backtrace ) ) end
tries to fins all instance methods that have both a setter and a getter of the curent class
tries to fins all instance methods that have both a setter and a getter of the curent class
An array with all the atrributes and instance methods that have both a setter and a getter
An array with all the atrributes and instance methods that have both a setter and a getter
Array<String>
see
None
api
None