Exception: 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
-
#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) ⇒ NoOptionValueSlot
constructor
A new instance of NoOptionValueSlot.
- #to_s ⇒ Object
Constructor Details
#initialize(program, option_name) ⇒ NoOptionValueSlot
Returns 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
#option_name ⇒ Object (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 |
#program ⇒ Object (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
#to_s ⇒ Object
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 |