Sha256: 4bd1fb8551bb0783dea457ff382dd5343ccc79fdaf910329933767b206808b84
Contents?: true
Size: 931 Bytes
Versions: 1
Compression:
Stored size: 931 Bytes
Contents
module Nanoc class MutableItemCollectionView < Nanoc::MutableIdentifiableCollectionView # @api private def view_class Nanoc::MutableItemView end # Creates a new item and adds it to the site’s collection of items. # # @param [String] content The uncompiled item content (if it is a textual # item) or the path to the filename containing the content (if it is a # binary item). # # @param [Hash] attributes A hash containing this item's attributes. # # @param [Nanoc::Identifier, String] identifier This item's identifier. # # @param [Hash] params Extra parameters. # # @option params [Symbol, nil] :binary (true) Whether or not this item is # binary # # @return [self] def create(content, attributes, identifier, params = {}) @objects << Nanoc::Int::Item.new(content, attributes, identifier, params) self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.0.0b3 | lib/nanoc/base/views/mutable_item_collection.rb |