Sha256: 173bc0dac9f521fbc175c058f4bfab03b30278fd369f3877f37b4a602881f3af

Contents?: true

Size: 225 Bytes

Versions: 4

Compression:

Stored size: 225 Bytes

Contents

class TestDocument < PrawnCocktail::Document
  helper TestDocumentHelper

  def initialize(message)
    @message = message
  end

  def filename
    "test.pdf"
  end

  private

  def data
    { message: @message }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prawn_cocktail_rails-0.3.2 spec/dummy/app/documents/test_document.rb
prawn_cocktail_rails-0.3.1 spec/dummy/app/documents/test_document.rb
prawn_cocktail_rails-0.2.1 spec/dummy/app/documents/test_document.rb
prawn_cocktail_rails-0.2.0 spec/dummy/app/documents/test_document.rb