lib/sensu/client/validators/check.rb
def invalid(object, message)
          @failures << {
            :object => object,
            :message => message
          }
        end
# This method is called when `validate_check()` encounters an
# invalid definition object. This method adds definition
# validation failures to `@failures`.
This method is called when `validate_check()` encounters an
invalid definition object. This method adds definition
validation failures to `@failures`.
This method is called when ` validate_check () ` encounters an invalid definition object . This method adds definition validation failures to ` @failures ` .
def invalid(object, message)
          @failures << {
            :object => object,
            :message => message
          }
        end
def invalid ( object , message ) @failures << { :object => object , :message => message } end
This method is called when `validate_check()` encounters an
invalid definition object.
This method is called when ` validate_check () ` encounters an invalid definition object .
object
message