Sha256: e10477c6583c9c581ee1f3aa545d16e8ed7f623ca0372afb913a17655b62b9e6

Contents?: true

Size: 313 Bytes

Versions: 5

Compression:

Stored size: 313 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template 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.9.1 screen_test/settings/ansi/bold.rb
whirled_peas-0.9.0 screen_test/settings/ansi/bold.rb
whirled_peas-0.8.0 screen_test/settings/ansi/bold.rb
whirled_peas-0.7.1 screen_test/settings/ansi/bold.rb
whirled_peas-0.7.0 screen_test/settings/ansi/bold.rb