class Proforma::Document

A rendering engine will output one or more of these objects. It is the final realization of the compilation + rendering process.

Attributes

contents[R]
extension[R]
title[R]

Public Class Methods

new(contents: nil, extension: '', title: '') click to toggle source
# File lib/proforma/document.rb, line 18
def initialize(contents: nil, extension: '', title: '')
  @contents   = contents
  @extension  = extension
  @title      = title

  freeze
end

Public Instance Methods

==(other) click to toggle source
# File lib/proforma/document.rb, line 34
def ==(other)
  eql?(other)
end
eql?(other) click to toggle source
# File lib/proforma/document.rb, line 26
def eql?(other)
  return false unless other.is_a?(self.class)

  contents == other.contents &&
    extension == other.extension &&
    title == other.title
end