I'm talking about the Oracle and Informix (perhaps some others too) function used to filter out non NULL values from query results (similar to COALESCE in other ... ... <看更多>
def first_non_nil(*args). self.each do |element|. return element unless element.nil? end. nil. end. # Alias for the Oracle folks. def nvl. first_non_nil. ... <看更多>