Sha256: 07b1fc8e16e08fea69c2a8760275bf266a32345e3f06c3ba5d4f6fbffe60a66d
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
module Nanoc module MutableDocumentViewMixin # Sets the value for the given attribute. # # @param [Symbol] key # # @see Hash#[]= def []=(key, value) unwrap.attributes[key] = value end # Updates the attributes based on the given hash. # # @param [Hash] hash # # @return [self] def update_attributes(hash) hash.each { |k, v| unwrap.attributes[k] = v } self end end end
Version data entries
3 entries across 3 versions & 1 rubygems