Sha256: 84921360c147436d35b3e6273d6377e2f40fabfbbcd9bd3835163b01ec0c360f

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

module Lumos
  module Formatters
    class Top < Lumos::Formatters::Base
      def initialize(options = {})
        super
        @padding = options.fetch(:padding, 0).to_i.abs
      end

      def result
        "#{horizontal_line}\n"\
        "#{horizontal_padding}"\
        "#{iterate_chopped_lines{ |line| content_paragraph line }}"
      end

    private

      def content_paragraph(line)
        "#{line}#{chopping_line line}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lumos-0.0.2 lib/lumos/formatters/top.rb
lumos-0.0.1 lib/lumos/formatters/top.rb