Sha256: 51f5fb30c8090373b320cb4886073340f3bc9e204b961d350f06ec1a55de7772
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
module DbdDataEngine module ResourceSelectors # TODO implement some of these methods on Dbd gem to clean-up def select_with_defines_predicate(resources) resources.select do |resource| single_fact_on_predicate(resource, 'meta:defines_predicate') end end def single_fact_on_predicate(resource, predicate) resource.select do |fact| fact.predicate == predicate end.single end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dbd_data_engine-0.0.10 | lib/dbd_data_engine/resource_selectors.rb |