Exception: SiteFuel::External::UnallowedOptionName
- Defined in:
- lib/sitefuel/external/AbstractExternalProgram.rb
Overview
because of the AbstractExternalProgram’s API design there are certain option names that are disallowed (see AbstractExternalProgram#excluded_option_names)
Instance Attribute Summary collapse
-
#excluded_names ⇒ Object
readonly
Returns the value of attribute excluded_names.
-
#option_name ⇒ Object
readonly
Returns the value of attribute option_name.
-
#program ⇒ Object
readonly
Returns the value of attribute program.
Instance Method Summary collapse
-
#initialize(program, option_name, excluded_names) ⇒ UnallowedOptionName
constructor
A new instance of UnallowedOptionName.
- #to_s ⇒ Object
Constructor Details
#initialize(program, option_name, excluded_names) ⇒ UnallowedOptionName
Returns a new instance of UnallowedOptionName.
71 72 73 74 75 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 71 def initialize(program, option_name, excluded_names) @program = program @option_name = option_name @excluded_names = excluded_names end |
Instance Attribute Details
#excluded_names ⇒ Object (readonly)
Returns the value of attribute excluded_names.
70 71 72 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 70 def excluded_names @excluded_names end |
#option_name ⇒ Object (readonly)
Returns the value of attribute option_name.
70 71 72 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 70 def option_name @option_name end |
#program ⇒ Object (readonly)
Returns the value of attribute program.
70 71 72 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 70 def program @program end |
Instance Method Details
#to_s ⇒ Object
77 78 79 80 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 77 def to_s 'Program %s declares option %s which has one of the illegal option names: %s' % [program, option_name, excluded_names] end |