Class: CutePrint::TermWidth::Static Private
- 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
- #width ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(width) ⇒ Static
constructor
private
A new instance of Static.
- #visible ⇒ Object private
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
#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.
8 9 10 |
# File 'lib/cute_print/term_width/static.rb', line 8 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.
14 15 16 |
# File 'lib/cute_print/term_width/static.rb', line 14 def visible @width end |