Class: Fatty::Screen::Rect
- Inherits:
-
Struct
- Object
- Struct
- Fatty::Screen::Rect
- Defined in:
- lib/fatty/screen.rb
Instance Attribute Summary collapse
-
#col ⇒ Object
Returns the value of attribute col.
-
#cols ⇒ Object
Returns the value of attribute cols.
-
#row ⇒ Object
Returns the value of attribute row.
-
#rows ⇒ Object
Returns the value of attribute rows.
Instance Method Summary collapse
Instance Attribute Details
#col ⇒ Object
Returns the value of attribute col
13 14 15 |
# File 'lib/fatty/screen.rb', line 13 def col @col end |
#cols ⇒ Object
Returns the value of attribute cols
13 14 15 |
# File 'lib/fatty/screen.rb', line 13 def cols @cols end |
#row ⇒ Object
Returns the value of attribute row
13 14 15 |
# File 'lib/fatty/screen.rb', line 13 def row @row end |
#rows ⇒ Object
Returns the value of attribute rows
13 14 15 |
# File 'lib/fatty/screen.rb', line 13 def rows @rows end |
Instance Method Details
#bottom ⇒ Object
14 15 16 |
# File 'lib/fatty/screen.rb', line 14 def bottom row + rows end |
#right ⇒ Object
18 19 20 |
# File 'lib/fatty/screen.rb', line 18 def right col + cols end |