Class: CutePrint::TermWidth::Detected Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeDetected

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

#widthObject (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

#visibleObject

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