Class: Muxr::Renderer::Cell
- Inherits:
-
Struct
- Object
- Struct
- Muxr::Renderer::Cell
- Defined in:
- lib/muxr/renderer.rb
Instance Attribute Summary collapse
-
#attrs ⇒ Object
Returns the value of attribute attrs.
-
#bg ⇒ Object
Returns the value of attribute bg.
-
#char ⇒ Object
Returns the value of attribute char.
-
#fg ⇒ Object
Returns the value of attribute fg.
Instance Method Summary collapse
Instance Attribute Details
#attrs ⇒ Object
Returns the value of attribute attrs
21 22 23 |
# File 'lib/muxr/renderer.rb', line 21 def attrs @attrs end |
#bg ⇒ Object
Returns the value of attribute bg
21 22 23 |
# File 'lib/muxr/renderer.rb', line 21 def bg @bg end |
#char ⇒ Object
Returns the value of attribute char
21 22 23 |
# File 'lib/muxr/renderer.rb', line 21 def char @char end |
#fg ⇒ Object
Returns the value of attribute 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 |