Class: TTYString::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/tty_string/cell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, style: NullStyle) ⇒ Cell

Returns a new instance of Cell.



7
8
9
10
# File 'lib/tty_string/cell.rb', line 7

def initialize(value, style: NullStyle)
  @style = style
  @value = value
end

Instance Attribute Details

#styleObject (readonly)

Returns the value of attribute style.



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

def style
  @style
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end