Class: CutePrint::OutlineLabeler Private
- Defined in:
- lib/cute_print/outline_labeler.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(formatter, width, label, value) ⇒ OutlineLabeler
constructor
private
A new instance of OutlineLabeler.
- #labeled ⇒ Object private
Constructor Details
#initialize(formatter, width, label, value) ⇒ OutlineLabeler
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of OutlineLabeler.
9 10 11 12 13 14 |
# File 'lib/cute_print/outline_labeler.rb', line 9 def initialize(formatter, width, label, value) @formatter = formatter @width = width @label = label @value = value end |
Class Method Details
.label(formatter, width, label, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'lib/cute_print/outline_labeler.rb', line 5 def self.label(formatter, width, label, value) new(formatter, width, label, value).labeled end |
Instance Method Details
#labeled ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/cute_print/outline_labeler.rb', line 16 def labeled [labeled_first_line] + indented_remaining_lines end |