Sha256: 65e348f98aa7d614ce658d96d93aa8a2dc81a5bd0e2883c3e8d770deabc732f6

Contents?: true

Size: 385 Bytes

Versions: 15

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

module Nanoc
  class PostCompileItemView < Nanoc::ItemWithRepsView
    def reps
      Nanoc::PostCompileItemRepCollectionView.new(@context.reps[unwrap], @context)
    end

    # @deprecated Use {#modified_reps} instead
    def modified
      modified_reps
    end

    def modified_reps
      reps.select { |rep| rep.unwrap.modified? }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-4.8.9 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.8.8 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.8.7 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.8.6 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.8.5 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.8.4 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.8.3 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.8.2 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.8.1 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.8.0 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.7.14 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.7.13 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.7.12 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.7.11 lib/nanoc/base/views/post_compile_item_view.rb
nanoc-4.7.10 lib/nanoc/base/views/post_compile_item_view.rb