Class: YeSQL::Errors::OutputArgumentError
- Inherits:
-
Object
- Object
- YeSQL::Errors::OutputArgumentError
- Defined in:
- lib/yesql/errors/output_argument_error.rb
Instance Method Summary collapse
-
#initialize(output) ⇒ OutputArgumentError
constructor
A new instance of OutputArgumentError.
- #validate_output_options ⇒ Object
Constructor Details
#initialize(output) ⇒ OutputArgumentError
Returns a new instance of OutputArgumentError.
6 7 8 |
# File 'lib/yesql/errors/output_argument_error.rb', line 6 def initialize(output) @output = output end |
Instance Method Details
#validate_output_options ⇒ Object
10 11 12 13 14 15 |
# File 'lib/yesql/errors/output_argument_error.rb', line 10 def return if output.nil? return if OPTIONS.include?(output.to_sym) raise ArgumentError, end |