Class: Term
- Inherits:
-
Object
- Object
- Term
- Defined in:
- lib/testing.rb
Class Attribute Summary collapse
-
.height ⇒ Object
readonly
Returns the value of attribute height.
-
.width ⇒ Object
readonly
Returns the value of attribute width.
Class Method Summary collapse
Class Attribute Details
.height ⇒ Object (readonly)
Returns the value of attribute height.
197 198 199 |
# File 'lib/testing.rb', line 197 def height @height end |
.width ⇒ Object (readonly)
Returns the value of attribute width.
197 198 199 |
# File 'lib/testing.rb', line 197 def width @width end |
Class Method Details
.get_terminal_size ⇒ Object
200 201 202 |
# File 'lib/testing.rb', line 200 def self.get_terminal_size @height, @width = [Integer(`tput li`), Integer(`tput co`)] end |