Class: Muxr::Renderer::Cell

Inherits:
Struct
  • Object
show all
Defined in:
lib/muxr/renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attrsObject

Returns the value of attribute attrs

Returns:

  • (Object)

    the current value of attrs



21
22
23
# File 'lib/muxr/renderer.rb', line 21

def attrs
  @attrs
end

#bgObject

Returns the value of attribute bg

Returns:

  • (Object)

    the current value of bg



21
22
23
# File 'lib/muxr/renderer.rb', line 21

def bg
  @bg
end

#charObject

Returns the value of attribute char

Returns:

  • (Object)

    the current value of char



21
22
23
# File 'lib/muxr/renderer.rb', line 21

def char
  @char
end

#fgObject

Returns the value of attribute fg

Returns:

  • (Object)

    the current value of fg



21
22
23
# File 'lib/muxr/renderer.rb', line 21

def fg
  @fg
end

Instance Method Details

#==(other) ⇒ Object



22
23
24
# File 'lib/muxr/renderer.rb', line 22

def ==(other)
  other.is_a?(Cell) && char == other.char && fg == other.fg && bg == other.bg && attrs == other.attrs
end