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

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

Instance Attribute Summary

Attributes inherited from Dry::Types::Result

#input

Instance Method Summary collapse

Methods inherited from Dry::Types::Result

#initialize

Constructor Details

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

Instance Method Details

#failure?false

Returns:

  • (false)


23
24
25
# File 'lib/dry/types/result.rb', line 23

def failure?
  false
end

#success?true

Returns:

  • (true)


18
19
20
# File 'lib/dry/types/result.rb', line 18

def success?
  true
end