Sha256: 1438f3eb6c3a9565da9f6b528ff6c44fa5fbb18f719f56942ef7f506144b4700

Contents?: true

Size: 499 Bytes

Versions: 3

Compression:

Stored size: 499 Bytes

Contents

module PaperTrailScrapbook
  # Class LifeHistory provides Full multi version history
  #
  # @author Timothy Chambers <tim@possibilogy.com>
  #
  class LifeHistory
    def initialize(object)
      @versions = object.versions
    end

    # Retries textual historical analysis of versions
    #
    # @return [String] analyzed versions
    #
    def story
      versions.map do |v|
        Chapter.new(v).story
      end.compact.join("\n\n")
    end

    private

    attr_reader :versions
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
paper_trail_scrapbook-0.1.8 lib/paper_trail_scrapbook/life_history.rb
paper_trail_scrapbook-0.1.7 lib/paper_trail_scrapbook/life_history.rb
paper_trail_scrapbook-0.1.6 lib/paper_trail_scrapbook/life_history.rb