Class: YardTypes::Success

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

Overview

Returned from #check when a type check succeeds, providing the particular type which satisfied the TypeConstraint.

Instance Method Summary collapse

Methods inherited from Result

#success?

Constructor Details

#initializeSuccess

Returns a new instance of Success


25
26
27
# File 'lib/yard_types.rb', line 25

def initialize
  super(true)
end