Class: GLW::ScreenCell

Inherits:
Data
  • Object
show all
Defined in:
lib/glw/screen_cell.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bg_colorObject (readonly)

Returns the value of attribute bg_color

Returns:

  • (Object)

    the current value of bg_color



2
3
4
# File 'lib/glw/screen_cell.rb', line 2

def bg_color
  @bg_color
end

#charObject (readonly)

Returns the value of attribute char

Returns:

  • (Object)

    the current value of char



2
3
4
# File 'lib/glw/screen_cell.rb', line 2

def char
  @char
end

#fg_colorObject (readonly)

Returns the value of attribute fg_color

Returns:

  • (Object)

    the current value of fg_color



2
3
4
# File 'lib/glw/screen_cell.rb', line 2

def fg_color
  @fg_color
end

Class Method Details

.blankObject



3
4
5
# File 'lib/glw/screen_cell.rb', line 3

def self.blank
  @blank ||= new(" ", :black, :black)
end