Sha256: 41a60e6d2fe4409c667ac5dc62cd91f221236a4b91f192095bda5fa829060760
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
module Lumos module Formatters class Bottom < Lumos::Formatters::Base def initialize(options = {}) super @padding = options.fetch(:padding, 0).to_i.abs end def result "#{iterate_chopped_lines{ |line| "#{content_paragraph(line)}\n" }}"\ "#{horizontal_padding}"\ "#{horizontal_line}" end private def content_paragraph(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/bottom.rb |
lumos-0.0.1 | lib/lumos/formatters/bottom.rb |