Exception: FoxTail::ReservedOption

Inherits:
ComponentError show all
Defined in:
lib/fox_tail/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ComponentError

#component

Instance Method Summary collapse

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

#optionObject (readonly)

Returns the value of attribute option.



27
28
29
# File 'lib/fox_tail/errors.rb', line 27

def option
  @option
end