lib/grover/utils.rb in grover-0.7.2 vs lib/grover/utils.rb in grover-0.7.3

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + class Grover # # Utility class for Grover helper methods # class Utils @@ -25,10 +27,10 @@ # # Based on active support # @see active_support/core_ext/string/strip.rb # def self.strip_heredoc(string, inline: false) - string = string.gsub(/^#{string.scan(/^[ \t]*(?=\S)/).min}/, ''.freeze) + string = string.gsub(/^#{string.scan(/^[ \t]*(?=\S)/).min}/, '') inline ? string.delete("\n") : string end # # Assign value to a hash using an array of keys to traverse