Method: Sequel::SQL::DelayedEvaluation#call
- Defined in:
- lib/sequel/sql.rb
#call(ds) ⇒ Object
Call the underlying callable and return the result. If the underlying callable only accepts a single argument, call it with the given dataset.
1358 1359 1360 1361 1362 1363 1364 |
# File 'lib/sequel/sql.rb', line 1358 def call(ds) if @callable.respond_to?(:arity) && @callable.arity == 1 @callable.call(ds) else @callable.call end end |