# File lib/facet/regexp/arity.rb, line 11 def arity self.source.scan( /(?!\\)[(](?!\?[#=:!>-imx])/ ).length end