Class: Archon::Nodes::Coalesce

Inherits:
Arel::Nodes::NamedFunction
  • Object
show all
Defined in:
lib/archon/nodes/coalesce.rb

Overview

Coalesce

An Arel node that generates a ‘COALESCE’ statement

Instance Method Summary collapse

Constructor Details

#initialize(*coalescees) ⇒ Coalesce

Returns a new instance of Coalesce.



12
13
14
# File 'lib/archon/nodes/coalesce.rb', line 12

def initialize(*coalescees)
  super 'COALESCE', coalescees
end