Class: Nanoc::Core::PostCompileItemView
- Inherits:
-
CompilationItemView
- Object
- View
- BasicItemView
- CompilationItemView
- Nanoc::Core::PostCompileItemView
- Defined in:
- lib/nanoc/core/post_compile_item_view.rb
Instance Method Summary collapse
-
#modified ⇒ Object
deprecated
Deprecated.
Use #modified_reps instead
- #modified_reps ⇒ Object
- #reps ⇒ Object
Methods inherited from CompilationItemView
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
#modified ⇒ Object
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_reps ⇒ Object
15 16 17 |
# File 'lib/nanoc/core/post_compile_item_view.rb', line 15 def modified_reps reps.select { |rep| rep._unwrap.modified? } end |
#reps ⇒ Object
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 |