method

any

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: VariantCollector
any(*args, &block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 298
        def any(*args, &block)
          if block_given?
            if args.any? && args.none? { |a| a == @variant }
              args.each { |v| @variants[v] = block }
            else
              @variants[:any] = block
            end
          end
        end
Register or log in to add new notes.