Class: Lumos::Formatters::Left

Inherits:
Base
  • Object
show all
Defined in:
lib/lumos/formatters/left.rb

Instance Attribute Summary

Attributes inherited from Base

#delimiter, #length, #message, #padding

Instance Method Summary collapse

Methods inherited from Base

#initialize, #message_length

Methods included from BaseHorizontal

#horizontal_line, #horizontal_padding, #horizontal_pattern, #horizontal_result

Methods included from BaseChopper

#chopped_message, #chopped_message_length, #chopping_last_line?, #chopping_line, #chopping_padding, #iterate_chopped_lines

Constructor Details

This class inherits a constructor from Lumos::Formatters::Base

Instance Method Details

#resultObject



4
5
6
7
8
9
# File 'lib/lumos/formatters/left.rb', line 4

def result
  iterate_chopped_lines do |line|
    "#{delimiter}#{vertical_padding}#{line}"\
    "#{chopping_line line}"
  end
end