instance method kwarg_request?

Ruby on Rails 5.0.7.2

Since v5.0.7.2 Last seen in v5.0.7.2 Private — implementation detail, not part of the public API

Signature

kwarg_request?(args)

No documentation comment.

Parameters

args req
Source
# File actionpack/lib/action_controller/test_case.rb, line 655
      def kwarg_request?(args)
        args.size == 1 && args[0].respond_to?(:keys) && (
          args[0].keys.all? { |k| FORMAT_KWARGS.include?(k) } ||
          args[0].keys.any? { |k| REQUEST_KWARGS.include?(k) }
        )
      end

Defined in actionpack/lib/action_controller/test_case.rb line 655 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::TestCase::Behavior

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close