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(*)
1397 1398 1399 1400 1401 1402 1403 1404 |
# File 'lib/sequel/sql.rb', line 1397 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 |