Class: YardTypes::Success
Overview
Returned from #check when a type check succeeds, providing the particular type which satisfied the TypeConstraint.
Instance Method Summary collapse
-
#initialize ⇒ Success
constructor
A new instance of Success.
Methods inherited from Result
Constructor Details
#initialize ⇒ Success
Returns a new instance of Success.
25 26 27 |
# File 'lib/yard_types.rb', line 25 def initialize super(true) end |