Sha256: 0e18ea86e99374b9683d189104923b1023cf74f694e080d7e56f3d29e859ce9e

Contents?: true

Size: 320 Bytes

Versions: 5

Compression:

Stored size: 320 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer, settings|
      settings.flow = :t2b
      composer.add_text('Bold') do |_, settings|
        settings.bold = true
        'This is bold'
      end
      composer.add_text { 'This is not bold' }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 screen_test/settings/ansi/bold.rb
whirled_peas-0.12.0 screen_test/settings/ansi/bold.rb
whirled_peas-0.11.1 screen_test/settings/ansi/bold.rb
whirled_peas-0.11.0 screen_test/settings/ansi/bold.rb
whirled_peas-0.10.0 screen_test/settings/ansi/bold.rb