# File lib/adhearsion/voip/dsl/dialing_dsl/dialing_dsl_monkey_patches.rb, line 8 def |(other) case other when RouteRule other.unshift_pattern self other when Regexp RouteRule.new :patterns => [self, other] else raise ArgumentError, "Unsupported pattern type #{other.inspect}" end end