Class: Fatty::Screen::Rect

Inherits:
Struct
  • Object
show all
Defined in:
lib/fatty/screen.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#colObject

Returns the value of attribute col

Returns:

  • (Object)

    the current value of col



13
14
15
# File 'lib/fatty/screen.rb', line 13

def col
  @col
end

#colsObject

Returns the value of attribute cols

Returns:

  • (Object)

    the current value of cols



13
14
15
# File 'lib/fatty/screen.rb', line 13

def cols
  @cols
end

#rowObject

Returns the value of attribute row

Returns:

  • (Object)

    the current value of row



13
14
15
# File 'lib/fatty/screen.rb', line 13

def row
  @row
end

#rowsObject

Returns the value of attribute rows

Returns:

  • (Object)

    the current value of rows



13
14
15
# File 'lib/fatty/screen.rb', line 13

def rows
  @rows
end

Instance Method Details

#bottomObject



14
15
16
# File 'lib/fatty/screen.rb', line 14

def bottom
  row + rows
end

#rightObject



18
19
20
# File 'lib/fatty/screen.rb', line 18

def right
  col + cols
end