Class: Rack::MockResponse::Cookie
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rack/mock_response.rb |
Class Method Summary
- .new(args) ⇒ Cookie constructor
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(args) ⇒ Cookie
# File 'lib/rack/mock_response.rb', line 17
def initialize(args) @name = args["name"] @value = args["value"] @path = args["path"] @domain = args["domain"] @expires = args["expires"] @secure = args["secure"] end
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block)
[ GitHub ]# File 'lib/rack/mock_response.rb', line 26
def method_missing(method_name, *args, &block) @value.send(method_name, *args, &block) end
Instance Attribute Details
#domain (readonly)
[ GitHub ]#expires (readonly)
[ GitHub ]#name (readonly)
[ GitHub ]#path (readonly)
[ GitHub ]#secure (readonly)
[ GitHub ]#value (readonly)
[ GitHub ]Instance Method Details
#respond_to_missing?(method_name, include_all = false) ⇒ Boolean
:nocov:
# File 'lib/rack/mock_response.rb', line 33
def respond_to_missing?(method_name, include_all = false) @value.respond_to?(method_name, include_all) || super end