Exception: Boxafe::OptionError

Inherits:
Error
  • Object
show all
Defined in:
lib/boxafe.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#code

Instance Method Summary collapse

Constructor Details

#initialize(msg, option = nil) ⇒ OptionError

Returns a new instance of OptionError.


22
23
24
25
# File 'lib/boxafe.rb', line 22

def initialize msg, option = nil
  super msg
  @option = option
end

Instance Attribute Details

#optionObject (readonly)

Returns the value of attribute option


20
21
22
# File 'lib/boxafe.rb', line 20

def option
  @option
end