Class: TTYString::Row
- Inherits:
-
Object
- Object
- TTYString::Row
- Includes:
- Enumerable
- Defined in:
- lib/tty_string/row.rb
Instance Attribute Summary collapse
-
#newline_style ⇒ Object
Returns the value of attribute newline_style.
Instance Method Summary collapse
- #[]=(index, value) ⇒ Object
- #each(&block) ⇒ Object
- #fill(*args) ⇒ Object
-
#initialize(newline_style: NullStyle) ⇒ Row
constructor
A new instance of Row.
- #slice!(*args) ⇒ Object
Constructor Details
Instance Attribute Details
#newline_style ⇒ Object
Returns the value of attribute newline_style.
7 8 9 |
# File 'lib/tty_string/row.rb', line 7 def newline_style @newline_style end |
Instance Method Details
#[]=(index, value) ⇒ Object
18 19 20 |
# File 'lib/tty_string/row.rb', line 18 def []=(index, value) @array[index] = value end |
#each(&block) ⇒ Object
14 15 16 |
# File 'lib/tty_string/row.rb', line 14 def each(&block) @array.each(&block) end |
#fill(*args) ⇒ Object
26 27 28 |
# File 'lib/tty_string/row.rb', line 26 def fill(*args) @array.fill(*args) end |
#slice!(*args) ⇒ Object
22 23 24 |
# File 'lib/tty_string/row.rb', line 22 def slice!(*args) @array.slice!(*args) end |