lib/split/extensions/string.rb in split-1.3.2 vs lib/split/extensions/string.rb in split-1.4.0

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true class String # Constatntize is often provided by ActiveSupport, but ActiveSupport is not a dependency of Split. unless method_defined?(:constantize) def constantize names = self.split('::') @@ -10,6 +11,6 @@ constant = constant.const_defined?(name) ? constant.const_get(name) : constant.const_missing(name) end constant end end -end \ No newline at end of file +end