Class: ParamParam::Result

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

Overview

Defines operation result pattern. A result can be a success or a failure and has some value.

Direct Known Subclasses

Failure, Success

Instance Method Summary collapse

Instance Method Details

#failure?Boolean

Returns false.

Returns:

  • (Boolean)


13
14
15
# File 'lib/param_param/result.rb', line 13

def failure?
  false
end

#success?Boolean

Returns false.

Returns:

  • (Boolean)


8
9
10
# File 'lib/param_param/result.rb', line 8

def success?
  false
end