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.



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

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



27
28
29
# File 'lib/code/error.rb', line 27

def value
  @value
end