lib/nanoc/base/compilation/item_rep_proxy.rb in nanoc-3.6.7 vs lib/nanoc/base/compilation/item_rep_proxy.rb in nanoc-3.6.8
- old
+ new
@@ -40,11 +40,11 @@
#
# @param [Hash] args The filter arguments that should be passed to the
# filter's #run method
#
# @return [void]
- def filter(name, args={})
+ def filter(name, args = {})
set_assigns
@item_rep.filter(name, args)
end
# Lays out the item using the given layout. This method will replace the
@@ -57,10 +57,10 @@
# @see Nanoc::ItemRep#layout
#
# @param [String] layout_identifier The identifier of the layout to use
#
# @return [void]
- def layout(layout_identifier, extra_filter_args={})
+ def layout(layout_identifier, extra_filter_args = {})
set_assigns
layout = layout_with_identifier(layout_identifier)
filter_name, filter_args = @compiler.rules_collection.filter_for_layout(layout)
filter_args = filter_args.merge(extra_filter_args)