Class: Dry::Types::Result::Success

Inherits:
Dry::Types::Result show all
Defined in:
lib/dry/types/result.rb

Overview

Success result

Instance Attribute Summary

Attributes inherited from Dry::Types::Result

#input

Instance Method Summary collapse

Methods inherited from Dry::Types::Result

#initialize, #to_monad

Constructor Details

This class inherits a constructor from Dry::Types::Result

Instance Method Details

#failure?false

Returns:

  • (false)


35
36
37
# File 'lib/dry/types/result.rb', line 35

def failure?
  false
end

#success?true

Returns:

  • (true)


28
29
30
# File 'lib/dry/types/result.rb', line 28

def success?
  true
end