Internal class which represents a basic logical operation.
# File lib/sqlconditional.rb, line 173 def to_s return @string if @string @string = " " if @objects.empty? @string += " " + @operator + " " else case @type when LHS @string = @operator + " " + @objects[0].to_s when RHS @string = @objects[0].to_s + " " + @operator when MIDDLE @string = @objects.empty? ? " " + @operator + " " : @objects.join( " " + @operator + " " ) else raise NameError, ERR_UNKNOWN_OPERATOR_TYPE end end end
Generated with the Darkfish Rdoc Generator 2.