lib/strings.rb in strings-0.1.2 vs lib/strings.rb in strings-0.1.3
- old
+ new
@@ -1,9 +1,10 @@
# frozen_string_literal: true
+require 'strings-ansi'
+
require_relative 'strings/align'
-require_relative 'strings/ansi'
require_relative 'strings/fold'
require_relative 'strings/pad'
require_relative 'strings/truncate'
require_relative 'strings/wrap'
require_relative 'strings/version'
@@ -82,11 +83,11 @@
# Remove ANSI codes from the string
#
# @see Strings::ANSI#sanitize
#
# @api public
- def sanitize(text)
- ANSI.sanitize(text)
+ def sanitize(string)
+ ANSI.sanitize(string)
end
module_function :sanitize
# Truncate a text at a given length
#