arity_of(callable)
Returns the arity of a callable
# File actionpack/lib/action_view/asset_paths.rb, line 137 def arity_of(callable) callable.respond_to?(:arity) ? callable.arity : callable.method(:call).arity end