Sha256: 07ae92e895d6fede43badb093221982c2468aa601e0aca3ba9182f6d36b33896
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
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.0b3 | lib/nanoc/base/views/mutable_identifiable_collection.rb |