Sha256: d5cd21524bb1db5486d9c23c32ca38283cf0f173241cedbfd755c12bb40edb2f
Contents?: true
Size: 619 Bytes
Versions: 28
Compression:
Stored size: 619 Bytes
Contents
module ROM module Commands class Lazy class Delete < Lazy def call(*args) first = args.first last = args.last size = args.size if size > 1 && last.is_a?(Array) raise NotImplementedError else input = evaluator.call(first) if input.is_a?(Array) input.map do |item| command_proc[command, *(size > 1 ? [last, item] : [input])].call end else command_proc[command, input].call end end end end end end end
Version data entries
28 entries across 28 versions & 2 rubygems