Sha256: 550697eb1b0cdefa7bebeee4502667d5470d351b9ee7453f7cac2782f3dd719c
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 Bytes
Contents
# encoding: utf-8 module Nanoc class MutableIdentifiableCollectionView < Nanoc::IdentifiableCollectionView # Deletes every object for which the block evaluates to true. # # @yieldparam [#identifier] object # # @yieldreturn [Boolean] # # @return [self] def delete_if(&block) @objects.delete_if { |o| yield(view_class.new(o)) } self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.0.0b2 | lib/nanoc/base/views/mutable_identifiable_collection.rb |