Sha256: 7599aeb497d6a39c9eace9c69cd71094e4efe8dc38f4e258c6dbb3d453060352

Contents?: true

Size: 335 Bytes

Versions: 5

Compression:

Stored size: 335 Bytes

Contents

require 'whirled_peas'

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