Class: CutePrint::TermWidth::Static Private

Inherits:
Object
  • Object
show all
Defined in:
lib/cute_print/term_width/static.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 with a fixed value

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width) ⇒ Static

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 Static.



10
11
12
# File 'lib/cute_print/term_width/static.rb', line 10

def initialize(width)
  @width = 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.



8
9
10
# File 'lib/cute_print/term_width/static.rb', line 8

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.



14
15
16
# File 'lib/cute_print/term_width/static.rb', line 14

def visible
  @width
end