class method self.new

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.new(*args)

No documentation comment.

Parameters

args rest
Source
# File actionpack/lib/action_controller/headers.rb, line 8
      def initialize(*args)
         if args.size == 1 && args[0].is_a?(Hash)
           super()
           update(args[0])
         else
           super
         end
       end

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

Defined in ActionController::Http::Headers

Type at least 2 characters to search.

↑↓ navigate · open · esc close