lib/veritas/sql/generator/function/predicate.rb in veritas-sql-generator-0.0.5 vs lib/veritas/sql/generator/function/predicate.rb in veritas-sql-generator-0.0.6
- old
+ new
@@ -97,14 +97,14 @@
# @return [#to_s]
#
# @api private
def visit_veritas_function_predicate_inclusion(inclusion)
case inclusion.right
- when Range then range_inclusion_sql(inclusion)
- when EMPTY_ARRAY then FALSE
- else
- binary_infix_operation_sql(IN, inclusion)
+ when Range then range_inclusion_sql(inclusion)
+ when EMPTY_ARRAY then FALSE
+ else
+ binary_infix_operation_sql(IN, inclusion)
end
end
# Visit an Exclusion predicate
#
@@ -113,14 +113,14 @@
# @return [#to_s]
#
# @api private
def visit_veritas_function_predicate_exclusion(exclusion)
case exclusion.right
- when Range then range_exclusion_sql(exclusion)
- when EMPTY_ARRAY then TRUE
- else
- binary_infix_operation_sql(NOT_IN, exclusion)
+ when Range then range_exclusion_sql(exclusion)
+ when EMPTY_ARRAY then TRUE
+ else
+ binary_infix_operation_sql(NOT_IN, exclusion)
end
end
private
@@ -254,10 +254,10 @@
#
# @return [Boolean]
#
# @api private
def optional?(operand)
- operand.respond_to?(:required?) && !operand.required?
+ operand.respond_to?(:required?) && ! operand.required?
end
end # module Predicate
end # module Function
end # module Generator