class ArelExtensions::Nodes::Round

Constants

RETURN_TYPE

Public Class Methods

new(expr) click to toggle source
Calls superclass method
# File lib/arel_extensions/nodes/round.rb, line 6
def initialize expr
  if expr && expr.length == 1
    super [convert_to_node(expr.first)]
  else
    super [convert_to_node(expr.first), convert_to_number(expr[1])]
  end
end