Exception: SiteFuel::External::MalformedOptions
- Inherits:
-
StandardError
- Object
- StandardError
- SiteFuel::External::MalformedOptions
- Defined in:
- lib/sitefuel/external/AbstractExternalProgram.rb
Overview
AbstractExternalProgram#execute and friends have a somewhat strange syntax for accepting options and flags. This exception is raised when the syntax is malformed.
Instance Attribute Summary (collapse)
-
- (Object) options
readonly
Returns the value of attribute options.
-
- (Object) program
readonly
Returns the value of attribute program.
Instance Method Summary (collapse)
-
- (MalformedOptions) initialize(program, options)
constructor
A new instance of MalformedOptions.
- - (Object) to_s
Constructor Details
- (MalformedOptions) initialize(program, options)
A new instance of MalformedOptions
90 91 92 93 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 90 def initialize(program, ) @program = program @options = end |
Instance Attribute Details
- (Object) options (readonly)
Returns the value of attribute options
89 90 91 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 89 def @options end |
- (Object) program (readonly)
Returns the value of attribute program
89 90 91 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 89 def program @program end |
Instance Method Details
- (Object) to_s
95 96 97 98 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 95 def to_s 'Program %s called with a malformed options pattern: %s' % [program, .join(' ')] end |