lib/split/extensions/string.rb in split-3.4.1 vs lib/split/extensions/string.rb in split-4.0.0.pre
- 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('::')