Sha256: f2d7fd462b1cd398423089a05e789b4a4fead44101493cd532c1e6f0a903d2fa

Contents?: true

Size: 162 Bytes

Versions: 47

Compression:

Stored size: 162 Bytes

Contents

unless String.respond_to? :try_convert
  require 'backports/tools/arguments'

  def String.try_convert(x)
    Backports.try_convert(x, String, :to_str)
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
backports-3.6.7 lib/backports/1.9.1/string/try_convert.rb
backports-3.6.6 lib/backports/1.9.1/string/try_convert.rb
backports-3.6.5 lib/backports/1.9.1/string/try_convert.rb
backports-3.6.4 lib/backports/1.9.1/string/try_convert.rb
backports-3.6.3 lib/backports/1.9.1/string/try_convert.rb
backports-3.6.2 lib/backports/1.9.1/string/try_convert.rb
backports-3.6.1 lib/backports/1.9.1/string/try_convert.rb