lib/rfix/extension/strings.rb in rfix-2.0.4 vs lib/rfix/extension/strings.rb in rfix-3.0.0

- old
+ new

@@ -1,9 +1,17 @@ +# frozen_string_literal: true + require "strings" module Strings module Wrap - def self.wrap(line, *, **) - line + concerning :Fallback, prepend: true do + class_methods do + def wrap(line, *, **) + super + rescue IndexError + line + end + end end end end