Class: Nanoc::Core::PostCompileItemView

Inherits:
CompilationItemView show all
Defined in:
lib/nanoc/core/post_compile_item_view.rb

Instance Method Summary collapse

Methods inherited from CompilationItemView

#compiled_content, #path

Methods inherited from BasicItemView

#binary?, #children, #parent, #raw_filename

Methods included from DocumentViewMixin

#==, #[], #_unwrap, #attributes, #eql?, #fetch, #hash, #identifier, #initialize, #inspect, #key?, #raw_content, #reference

Methods inherited from View

#_context, #_unwrap, #frozen?, #initialize, #inspect

Methods included from ContractsSupport

enabled?, included, setup_once, warn_about_performance

Instance Method Details

#modifiedObject

Deprecated.

Use #modified_reps instead



11
12
13
# File 'lib/nanoc/core/post_compile_item_view.rb', line 11

def modified
  modified_reps
end

#modified_repsObject



15
16
17
# File 'lib/nanoc/core/post_compile_item_view.rb', line 15

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

#repsObject



6
7
8
# File 'lib/nanoc/core/post_compile_item_view.rb', line 6

def reps
  Nanoc::Core::PostCompileItemRepCollectionView.new(@context.reps[_unwrap], @context)
end