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



38
39
40
# File 'lib/muxr/renderer.rb', line 38

def attrs
  @attrs
end

#bgObject

Returns the value of attribute bg

Returns:

  • (Object)

    the current value of bg



38
39
40
# File 'lib/muxr/renderer.rb', line 38

def bg
  @bg
end

#charObject

Returns the value of attribute char

Returns:

  • (Object)

    the current value of char



38
39
40
# File 'lib/muxr/renderer.rb', line 38

def char
  @char
end

#fgObject

Returns the value of attribute fg

Returns:

  • (Object)

    the current value of fg



38
39
40
# File 'lib/muxr/renderer.rb', line 38

def fg
  @fg
end

Returns the value of attribute hyperlink

Returns:

  • (Object)

    the current value of hyperlink



38
39
40
# File 'lib/muxr/renderer.rb', line 38

def hyperlink
  @hyperlink
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
# File 'lib/muxr/renderer.rb', line 39

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