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

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

Overview

Success result

Instance Method Summary collapse

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