Sha256: 8abb1cb654b8802f3e1fded335f9d5a4983be0e2484195070136fe4645bccbb1
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 Bytes
Contents
module TestDocumentHelper def status_line(status) text "Status: #{status}" end end class TestDocument < PrawnCocktail::Document helper TestDocumentHelper initialize_document { text "Init works." } def initialize(status) @status = status end private def data { status: @status } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prawn_cocktail-0.5.3 | spec/fixtures/document.rb |
prawn_cocktail-0.5.1 | spec/fixtures/document.rb |