Class: Lumos::Formatters::Horizontal
- Defined in:
- lib/lumos/formatters/horizontal.rb
Instance Attribute Summary
Attributes inherited from Base
#delimiter, #length, #message, #padding
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Horizontal
constructor
A new instance of Horizontal.
- #result ⇒ Object
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
#initialize(options = {}) ⇒ Horizontal
Returns a new instance of Horizontal.
4 5 6 7 |
# File 'lib/lumos/formatters/horizontal.rb', line 4 def initialize( = {}) super @padding = .fetch(:padding, 0).to_i.abs end |
Instance Method Details
#result ⇒ Object
9 10 11 |
# File 'lib/lumos/formatters/horizontal.rb', line 9 def result horizontal_result end |