Method: Rql::Scope::BlockMethods#pluck

Defined in:
lib/rql/scope/block_methods.rb

#pluck { ... } ⇒ Array

Plucks the specified attributes, creating and array of values

Yields:

  • RQL block defining the attributes to be selected

Returns:

  • (Array)

    an array of values if plucking one value or an array of arrays if plucking multiple values



24
25
26
# File 'lib/rql/scope/block_methods.rb', line 24

def pluck(&block)
  scope.pluck(*build_attributes(true, &block))
end