Create an object with the given conditions and default value. An expression can be provided to test each condition against, instead of having all conditions represent their own boolean expression.
# File lib/sequel/sql.rb, line 967 967: def initialize(conditions, default, expression=(no_expression=true; nil)) 968: raise(Sequel::Error, 'CaseExpression conditions must be a hash or array of all two pairs') unless Sequel.condition_specifier?(conditions) 969: @conditions, @default, @expression, @no_expression = conditions.to_a, default, expression, no_expression 970: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.