lib/nanoc/rule_dsl/rule_context.rb in nanoc-4.4.4 vs lib/nanoc/rule_dsl/rule_context.rb in nanoc-4.4.5

- old
+ new

@@ -33,11 +33,11 @@ # @param [Hash] filter_args The filter arguments that should be passed to # the filter's #run method # # @return [void] def filter(filter_name, filter_args = {}) - @_executor.filter(rep.unwrap, filter_name, filter_args) + @_executor.filter(filter_name, filter_args) end # Layouts the current representation (calls {Nanoc::Int::ItemRep#layout} with # the given arguments on the rep). # @@ -46,11 +46,11 @@ # @param [String] layout_identifier The identifier of the layout the item # should be laid out with # # @return [void] def layout(layout_identifier, extra_filter_args = nil) - @_executor.layout(rep.unwrap, layout_identifier, extra_filter_args) + @_executor.layout(layout_identifier, extra_filter_args) end # Creates a snapshot of the current compiled item content. Calls # {Nanoc::Int::ItemRep#snapshot} with the given arguments on the rep. # @@ -60,10 +60,10 @@ # # @param [String, nil] path # # @return [void] def snapshot(snapshot_name, path: nil) - @_executor.snapshot(rep.unwrap, snapshot_name, path: path) + @_executor.snapshot(snapshot_name, path: path) end # Creates a snapshot named :last the current compiled item content, with # the given path. This is a convenience method for {#snapshot}. #