Method: Sequel::SQL::Function#*

Defined in:
lib/sequel/sql.rb

#*(ce = (arg=false;nil)) ⇒ Object

If no arguments are given, return a new function with the wildcard prepended to the arguments.

Sequel.function(:count).*  # count(*)


1391
1392
1393
1394
1395
1396
1397
1398
# File 'lib/sequel/sql.rb', line 1391

def *(ce=(arg=false;nil))
  if arg == false
    raise Error, "Cannot apply * to functions with arguments" unless args.empty?
    with_opts(:"*"=>true)
  else
    super(ce)
  end
end