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



46
47
48
# File 'lib/muxr/renderer.rb', line 46

def attrs
  @attrs
end

#bgObject

Returns the value of attribute bg

Returns:

  • (Object)

    the current value of bg



46
47
48
# File 'lib/muxr/renderer.rb', line 46

def bg
  @bg
end

#charObject

Returns the value of attribute char

Returns:

  • (Object)

    the current value of char



46
47
48
# File 'lib/muxr/renderer.rb', line 46

def char
  @char
end

#fgObject

Returns the value of attribute fg

Returns:

  • (Object)

    the current value of fg



46
47
48
# File 'lib/muxr/renderer.rb', line 46

def fg
  @fg
end

Returns the value of attribute hyperlink

Returns:

  • (Object)

    the current value of hyperlink



46
47
48
# File 'lib/muxr/renderer.rb', line 46

def hyperlink
  @hyperlink
end

Instance Method Details

#==(other) ⇒ Object



47
48
49
# File 'lib/muxr/renderer.rb', line 47

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