Exception: FoxTail::ReservedOption
- Inherits:
-
ComponentError
- Object
- StandardError
- Error
- ComponentError
- FoxTail::ReservedOption
- Defined in:
- lib/fox_tail/errors.rb
Instance Attribute Summary collapse
-
#option ⇒ Object
readonly
Returns the value of attribute option.
Attributes inherited from ComponentError
Instance Method Summary collapse
-
#initialize(component, option, msg = nil) ⇒ ReservedOption
constructor
A new instance of ReservedOption.
Constructor Details
#initialize(component, option, msg = nil) ⇒ ReservedOption
Returns a new instance of ReservedOption.
29 30 31 32 33 34 35 |
# File 'lib/fox_tail/errors.rb', line 29 def initialize(component, option, msg = nil) @option = option msg ||= "#{component} declares an option \"#{option}\", which is a reserved word in the" \ " FoxTail framework." super(component, msg) end |
Instance Attribute Details
#option ⇒ Object (readonly)
Returns the value of attribute option.
27 28 29 |
# File 'lib/fox_tail/errors.rb', line 27 def option @option end |