Sha256: 5c85db9266322d6442bc126ffb157a1f58cc7e5a5d900b0804f80e130f6c56d7

Contents?: true

Size: 227 Bytes

Versions: 6

Compression:

Stored size: 227 Bytes

Contents

# -*- coding: utf-8 -*-

require 'erb'

module TurnipFormatter
  class Template
    module StepMultiline
      def self.build(lines)
        '<pre class="multiline">' + ERB::Util.h(lines) + '</pre>'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
turnip_formatter-0.1.2 lib/turnip_formatter/template/step_multiline.rb
turnip_formatter-0.1.1 lib/turnip_formatter/template/step_multiline.rb
turnip_formatter-0.1.0 lib/turnip_formatter/template/step_multiline.rb
turnip_formatter-0.0.6 lib/turnip_formatter/template/step_multiline.rb
turnip_formatter-0.0.5 lib/turnip_formatter/template/step_multiline.rb
turnip_formatter-0.0.4 lib/turnip_formatter/template/step_multiline.rb