Class: Thaum::Rendering::Cell

Inherits:
Data
  • Object
show all
Defined in:
lib/thaum/rendering/cell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(char: " ", style: Style.new) ⇒ Cell

Returns a new instance of Cell.



6
7
8
# File 'lib/thaum/rendering/cell.rb', line 6

def initialize(char: " ", style: Style.new)
  super
end

Instance Attribute Details

#charObject (readonly)

Returns the value of attribute char

Returns:

  • (Object)

    the current value of char



5
6
7
# File 'lib/thaum/rendering/cell.rb', line 5

def char
  @char
end

#styleObject (readonly)

Returns the value of attribute style

Returns:

  • (Object)

    the current value of style



5
6
7
# File 'lib/thaum/rendering/cell.rb', line 5

def style
  @style
end