Exception: SiteFuel::External::UnknownOption
- Defined in:
- lib/sitefuel/external/AbstractExternalProgram.rb
Overview
raised when an option is given that isn’t known
Instance Attribute Summary collapse
-
#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) ⇒ UnknownOption
constructor
A new instance of UnknownOption.
- #to_s ⇒ Object
Constructor Details
#initialize(program, option_name) ⇒ UnknownOption
Returns a new instance of UnknownOption.
53 54 55 56 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 53 def initialize(program, option_name) @program = program @option_name = option_name end |
Instance Attribute Details
#option_name ⇒ Object (readonly)
Returns the value of attribute option_name.
52 53 54 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 52 def option_name @option_name end |
#program ⇒ Object (readonly)
Returns the value of attribute program.
52 53 54 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 52 def program @program end |
Instance Method Details
#to_s ⇒ Object
58 59 60 61 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 58 def to_s 'Program %s doesn\'t have option %s' % [program, option_name] end |