Class: Dry::Types::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/dry/types/result.rb

Direct Known Subclasses

Failure, Success

Defined Under Namespace

Classes: Failure, Success

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ Result

Returns a new instance of Result.

Parameters:

  • input (Object)


12
13
14
# File 'lib/dry/types/result.rb', line 12

def initialize(input)
  @input = input
end

Instance Attribute Details

#inputObject (readonly)

Returns:

  • (Object)


9
10
11
# File 'lib/dry/types/result.rb', line 9

def input
  @input
end