lib/duck_puncher/ducks/string.rb in duck_puncher-2.15.0 vs lib/duck_puncher/ducks/string.rb in duck_puncher-2.16.0

- old
+ new

@@ -12,8 +12,12 @@ end unless method_defined?(:underscore) def to_boolean !!BOOLEAN_MAP[downcase] end unless method_defined?(:to_boolean) + + def constantize + split('::').inject(Object) { |o, name| o.const_get name } + end unless method_defined?(:constantize) end end end