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

- (NoOptionValueSlot) initialize(program, option_name)



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