Exception: SiteFuel::External::NoOptionValueSlot

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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_nameObject (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

#programObject (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_sObject



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