Exception: Code::Error::Break

Inherits:
Code::Error show all
Defined in:
lib/code/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value = nil) ⇒ Break

Returns a new instance of Break.



32
33
34
# File 'lib/code/error.rb', line 32

def initialize(value = nil)
  @value = value || Object::Nothing.new
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



30
31
32
# File 'lib/code/error.rb', line 30

def value
  @value
end