Exception: Mangrove::Result::ControlSignal

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Includes:
ControlFlow::ControlSignal
Defined in:
lib/mangrove/result/control_signal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(inner_value) ⇒ void

Parameters:

  • inner_value (T.untyped)


14
15
16
17
# File 'lib/mangrove/result/control_signal.rb', line 14

def initialize(inner_value)
  @inner_value = inner_value
  super
end

Instance Attribute Details

#inner_valueT.untyped (readonly)

Returns:

  • (T.untyped)


30
31
32
# File 'lib/mangrove/result/control_signal.rb', line 30

def inner_value
  @inner_value
end

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

  • other (BasicObject)

Returns:

  • (Boolean)


20
21
22
23
24
25
26
27
# File 'lib/mangrove/result/control_signal.rb', line 20

def ==(other)
  case other
  when ControlSignal
    other.inner_value == inner_value
  else
    false
  end
end