Exception: SiteFuel::External::NoOptionValueSlot
- Inherits:
-
StandardError
- Object
- StandardError
- SiteFuel::External::NoOptionValueSlot
- Defined in:
- lib/sitefuel/external/AbstractExternalProgram.rb
Overview
raised when a default is specified for an option without a value slot in the option template
Instance Attribute Summary (collapse)
-
- (Object) option_name
readonly
Returns the value of attribute option_name.
-
- (Object) program
readonly
Returns the value of attribute program.
Instance Method Summary (collapse)
-
- (NoOptionValueSlot) initialize(program, option_name)
constructor
A new instance of NoOptionValueSlot.
- - (Object) to_s
Constructor Details
- (NoOptionValueSlot) initialize(program, option_name)
A new instance of NoOptionValueSlot
107 108 109 110 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 107 def initialize(program, option_name) @program = program @option_name = option_name end |
Instance Attribute Details
- (Object) option_name (readonly)
Returns the value of attribute option_name
106 107 108 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 106 def option_name @option_name end |
- (Object) program (readonly)
Returns the value of attribute program
106 107 108 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 106 def program @program end |
Instance Method Details
- (Object) to_s
112 113 114 115 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 112 def to_s 'Program %s has default value but no option slot for option %s' % [program, option_name] end |