Class: CutePrint::TermWidth::Detected Private
- Defined in:
- lib/cute_print/term_width/detected.rb
Overview
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.
A terminal width that tries to determine the terminal width automatically.
Instance Attribute Summary collapse
- #width ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize ⇒ Detected
constructor
private
A new instance of Detected.
- #visible ⇒ Object private
Constructor Details
#initialize ⇒ Detected
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 Detected.
11 12 13 |
# File 'lib/cute_print/term_width/detected.rb', line 11 def initialize @width = detect_width end |
Instance Attribute Details
#width ⇒ Object (readonly)
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.
9 10 11 |
# File 'lib/cute_print/term_width/detected.rb', line 9 def width @width end |
Instance Method Details
#visible ⇒ 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.
15 16 17 |
# File 'lib/cute_print/term_width/detected.rb', line 15 def visible :detect end |