File: try_convert.rb

package info (click to toggle)
ruby-backports 3.25.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,912 kB
  • sloc: ruby: 11,759; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 163 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
unless Array.respond_to? :try_convert
  require 'backports/tools/arguments'

  def Array.try_convert(obj)
    Backports.try_convert(obj, Array, :to_ary)
  end
end