Sha256: eba1181f64c3faf64e7b9ac16eb0a85b482d2a87fa607259741f4410354007de

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

require 'whirled_peas'

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

Version data entries

5 entries across 5 versions & 1 rubygems

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