Class: Term

Inherits:
Object
  • Object
show all
Defined in:
lib/testing.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.heightObject (readonly)

Returns the value of attribute height.



197
198
199
# File 'lib/testing.rb', line 197

def height
  @height
end

.widthObject (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_sizeObject



200
201
202
# File 'lib/testing.rb', line 200

def self.get_terminal_size
  @height, @width = [Integer(`tput li`), Integer(`tput co`)]
end