Class: Lumos::Formatters::Vertical
- Defined in:
- lib/lumos/formatters/vertical.rb
Instance Attribute Summary
Attributes inherited from Base
#delimiter, #length, #message, #padding
Instance Method Summary collapse
Methods inherited from Base
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
#result ⇒ Object
4 5 6 7 8 9 |
# File 'lib/lumos/formatters/vertical.rb', line 4 def result iterate_chopped_lines do |line| "#{delimiter}#{vertical_padding}#{line}#{vertical_padding}#{chopping_padding line}#{delimiter}"\ "#{chopping_line line}" end end |