Class: ReeDao::AggContractFor

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_dao/package/ree_dao/functions/agg_contract_for.rb

Instance Method Summary collapse

Instance Method Details

#call(klass) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/functions/agg_contract_for.rb', line 12

def call(klass)
  get_caller.contract(
    Or[Sequel::Dataset, ArrayOf[Integer], Integer, ArrayOf[klass]],
    Ksplat[
      only?: ArrayOf[Symbol],
      except?: ArrayOf[Symbol],
      RestKeys => Any
    ] => ArrayOf[klass]
  )

  nil
end