Sha256: a6c123d45f270c49b2e7916be5d9d706fb6f243c42fc0f7febe4e3637856778c
Contents?: true
Size: 760 Bytes
Versions: 4
Compression:
Stored size: 760 Bytes
Contents
module Blogit module Archive # Used internally by {List} when creating a new archive list. class Month attr_reader :month_name alias_method :to_s, :month_name attr_reader :archiveables # Creates a new {Month} object # # month_name - The name of the month for this collection of archiveables # archiveables - A collection of _archiveable_ objects # def initialize(month_name, archiveables) @month_name = month_name @archiveables = archiveables end # The name of the partial to load for a {Month} object # # Returns a String def to_partial_path self.class.name.underscore end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
blogit-1.1.2 | lib/blogit/archive/month.rb |
blogit-1.1.1 | lib/blogit/archive/month.rb |
blogit-1.1.0 | lib/blogit/archive/month.rb |
blogit-1.0.0 | lib/blogit/archive/month.rb |