Sha256: 2342b00d4fc7a6e5daa86d875a024b0c59c62f8855e4c0198f9489033d0d2d65
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 Bytes
Contents
module Nanoc2 # Nanoc2::Defaults represent the default attributes for a given set of # objects in the site. It is basically a hash with an optional modification # time. class Defaults # Th site where this set of defaults belongs to. attr_accessor :site # A hash containing the default attributes. attr_reader :attributes # The time when this set of defaults was last modified. attr_reader :mtime # Creates a new set of defaults. # # +attributes+:: The hash containing the metadata that individual objects # will override. # # +mtime+:: The time when the defaults were last modified (optional). def initialize(attributes, mtime=nil) @attributes = attributes.clean @mtime = mtime end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc2-2.2.3 | lib/nanoc2/base/defaults.rb |