Class: Lumos::Formatters::Horizontal

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

Instance Attribute Summary

Attributes inherited from Base

#delimiter, #length, #message, #padding

Instance Method Summary collapse

Methods inherited from Base

#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

#initialize(options = {}) ⇒ Horizontal

Returns a new instance of Horizontal.



4
5
6
7
# File 'lib/lumos/formatters/horizontal.rb', line 4

def initialize(options = {})
  super
  @padding = options.fetch(:padding, 0).to_i.abs
end

Instance Method Details

#resultObject



9
10
11
# File 'lib/lumos/formatters/horizontal.rb', line 9

def result
  horizontal_result
end