module SugarRefinery::RegexpUnion
Public Instance Methods
|(arg)
click to toggle source
# File lib/sugar_refinery/regexp_union.rb, line 6 def |(arg) Regexp.union self, arg.is_a?(Regexp) ? arg : arg.to_s end
# File lib/sugar_refinery/regexp_union.rb, line 6 def |(arg) Regexp.union self, arg.is_a?(Regexp) ? arg : arg.to_s end