lib/nanoc/base/source_data/item_array.rb in nanoc-3.6.7 vs lib/nanoc/base/source_data/item_array.rb in nanoc-3.6.8

- old
+ new

@@ -25,31 +25,31 @@ @items = [] end def freeze @items.freeze - self.build_mapping + build_mapping super end def [](*args) if 1 == args.size && args.first.is_a?(String) - self.item_with_identifier(args.first) + item_with_identifier(args.first) else @items[*args] end end alias_method :slice, :[] def at(arg) if arg.is_a?(String) - self.item_with_identifier(arg) + item_with_identifier(arg) else @items[arg] end end - protected + protected def item_with_identifier(identifier) if self.frozen? @mapping[identifier] else