Class: Rufio::Screen::Cell

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#bgObject

Returns the value of attribute bg

Returns:

  • (Object)

    the current value of bg



29
30
31
# File 'lib/rufio/screen.rb', line 29

def bg
  @bg
end

#charObject

Returns the value of attribute char

Returns:

  • (Object)

    the current value of char



29
30
31
# File 'lib/rufio/screen.rb', line 29

def char
  @char
end

#fgObject

Returns the value of attribute fg

Returns:

  • (Object)

    the current value of fg



29
30
31
# File 'lib/rufio/screen.rb', line 29

def fg
  @fg
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



29
30
31
# File 'lib/rufio/screen.rb', line 29

def width
  @width
end