Sha256: bc75732f806638bbecc73cb6a3a9af4b03e6e12b39dc063221778ca8d4ea827d
Contents?: true
Size: 782 Bytes
Versions: 3
Compression:
Stored size: 782 Bytes
Contents
# frozen_string_literal: true example :word_wrap, 'Word-wrap property of TextBlock' do |t| Thinreports::Report.generate filename: t.output_filename do use_layout t.layout_filename start_new_page page.item(:locale).value('ja') text = 'Thinreports は Ruby 向けのオープンソース帳票・PDF ツールです。' page.values single_none: text, single_break_word: text, multiple_none: text, multiple_break_word: text start_new_page page.item(:locale).value('en') text = 'Thinreports is the OSS reporting tool for Ruby-lang.' page.values single_none: text, single_break_word: text, multiple_none: text, multiple_break_word: text end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.10.2 | examples/word_wrap/word_wrap.rb |
thinreports-0.10.1 | examples/word_wrap/word_wrap.rb |
thinreports-0.10.0 | examples/word_wrap/word_wrap.rb |