lib/nanoc/helpers/capturing.rb in nanoc-3.6.7 vs lib/nanoc/helpers/capturing.rb in nanoc-3.6.8

- old
+ new

@@ -99,21 +99,21 @@ # @return [String] The stored captured content def content_for(*args, &block) if block_given? # Set content # Get args if args.size != 1 - raise ArgumentError, "expected 1 argument (the name " + + raise ArgumentError, 'expected 1 argument (the name ' + "of the capture) but got #{args.size} instead" end name = args[0] # Capture and store content = capture(&block) @site.captures_store[@item, name.to_sym] = content else # Get content # Get args if args.size != 2 - raise ArgumentError, "expected 2 arguments (the item " + + raise ArgumentError, 'expected 2 arguments (the item ' + "and the name of the capture) but got #{args.size} instead" end item = args[0] name = args[1]