lib/tty/table/operation/wrapped.rb in tty-0.0.11 vs lib/tty/table/operation/wrapped.rb in tty-0.1.0
- old
+ new
@@ -1,12 +1,13 @@
-# -*- encoding: utf-8 -*-
+# encoding: utf-8
module TTY
class Table
module Operation
-
# A class responsible for wrapping text.
+ #
+ # @api private
class Wrapped
attr_reader :widths
attr_reader :padding
@@ -49,11 +50,9 @@
#
# @api public
def wrap(string, width)
TTY::Text.wrap(string, width, padding: padding)
end
-
end # Wrapped
end # Operation
end # Table
end # TTY
-