Class: Rufio::Screen::Cell
- Inherits:
-
Struct
- Object
- Struct
- Rufio::Screen::Cell
- Defined in:
- lib/rufio/screen.rb
Overview
Pre-allocated mutable cell. Struct supports [] access like Hash, so callers using cell etc. need no changes.
Instance Attribute Summary collapse
-
#bg ⇒ Object
Returns the value of attribute bg.
-
#char ⇒ Object
Returns the value of attribute char.
-
#fg ⇒ Object
Returns the value of attribute fg.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Attribute Details
#bg ⇒ Object
Returns the value of attribute bg
29 30 31 |
# File 'lib/rufio/screen.rb', line 29 def bg @bg end |
#char ⇒ Object
Returns the value of attribute char
29 30 31 |
# File 'lib/rufio/screen.rb', line 29 def char @char end |
#fg ⇒ Object
Returns the value of attribute fg
29 30 31 |
# File 'lib/rufio/screen.rb', line 29 def fg @fg end |
#width ⇒ Object
Returns the value of attribute width
29 30 31 |
# File 'lib/rufio/screen.rb', line 29 def width @width end |