Class Regexp
In: lib/backports/1.9.1/regexp.rb
lib/backports/1.8.7/regexp.rb
Parent: Object

Methods

Public Class methods

[Source]

   # File lib/backports/1.9.1/regexp.rb, line 4
4:     def try_convert(obj)
5:       Backports.try_convert(obj, Regexp, :to_regexp)
6:     end

[Source]

   # File lib/backports/1.8.7/regexp.rb, line 5
5:       def union_with_array_argument(*arg)
6:         return union_without_array_argument(*arg) unless arg.size == 1
7:         union_without_array_argument(*arg.first)
8:       end

[Validate]