Class: YardTypes::Failure

Inherits:
Result
  • Object
show all
Defined in:
lib/yard_types.rb

Overview

Returned from #check when a type check fails, providing a reference to the TypeConstraint and a means of generating error messages describing the error.

Instance Method Summary collapse

Methods inherited from Result

#success?

Constructor Details

#initializeFailure

Returns a new instance of Failure


34
35
36
# File 'lib/yard_types.rb', line 34

def initialize
  super(false)
end