class method
self.new
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v4.1.16Signature
self.new(*args)
No documentation comment.
Parameters
-
argsrest
Source
# File actionpack/lib/action_dispatch/http/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_dispatch/http/headers.rb line 8
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Headers