summaryrefslogtreecommitdiff
path: root/lib/highline/list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/highline/list.rb')
-rw-r--r--lib/highline/list.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/highline/list.rb b/lib/highline/list.rb
index 1f2af2c..6ca876f 100644
--- a/lib/highline/list.rb
+++ b/lib/highline/list.rb
@@ -1,10 +1,8 @@
# coding: utf-8
class HighLine
-
# List class with some convenience methods like {#col_down}.
class List
-
# Original given *items* argument.
# It's frozen at initialization time and
# all later transformations will happen on {#list}.
@@ -33,7 +31,6 @@ class HighLine
attr_reader :transpose_mode
-
# Content are distributed first by column in col down mode.
# @return [Boolean]
#
@@ -69,7 +66,8 @@ class HighLine
build
end
- # Transpose the (already sliced by rows) list, turning its rows into columns.
+ # Transpose the (already sliced by rows) list,
+ # turning its rows into columns.
# @return [self]
def transpose
first_row = @list[0]
@@ -141,9 +139,7 @@ class HighLine
# Set the {#row_join_string}.
# @see #row_join_string
- def row_join_string=(string)
- @row_join_string = string
- end
+ attr_writer :row_join_string
# Returns the row join string size.
# Useful for calculating the actual size of
@@ -178,4 +174,4 @@ class HighLine
row.compact.join(row_join_string) + "\n"
end
end
-end \ No newline at end of file
+end