Exception: NotMonads::Do::Halt

Inherits:
StandardError
  • Object
show all
Defined in:
lib/not_monads/do.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ Halt

Returns a new instance of Halt.



32
33
34
35
# File 'lib/not_monads/do.rb', line 32

def initialize(result)
  super()
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



30
31
32
# File 'lib/not_monads/do.rb', line 30

def result
  @result
end