Class: Sneaql::Core::Commands::SneaqlExitIf
- Inherits:
-
SneaqlCommand
- Object
- SneaqlCommand
- Sneaql::Core::Commands::SneaqlExitIf
- Defined in:
- lib/sneaql_lib/core.rb
Overview
raises an error to exit the transform if the condition evaluates to true
Instance Method Summary collapse
Methods inherited from SneaqlCommand
#initialize, #valid_expression?, #valid_operator?, #valid_recordset?, #valid_symbol?, #valid_variable?, #validate_args
Constructor Details
This class inherits a constructor from Sneaql::Core::SneaqlCommand
Instance Method Details
#action(operand1, operator, operand2) ⇒ Object
186 187 188 189 190 |
# File 'lib/sneaql_lib/core.rb', line 186 def action(operand1, operator, operand2) if @expression_handler.compare_expressions(operator, operand1, operand2) raise Sneaql::Exceptions::SQLTestExitCondition end end |
#arg_definition ⇒ Object
argument types
193 194 195 |
# File 'lib/sneaql_lib/core.rb', line 193 def arg_definition [:expression, :operator, :expression] end |