Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/nerdz/rebinds.rb
Instance Method Summary collapse
- #__old_post__ ⇒ Object
- #post(path, params = {}, data = {}, initheader = nil, dest = nil, &block) ⇒ Object
Instance Method Details
#__old_post__ ⇒ Object
76 |
# File 'lib/nerdz/rebinds.rb', line 76 alias __old_post__ post |
#post(path, params = {}, data = {}, initheader = nil, dest = nil, &block) ⇒ Object
77 78 79 80 81 82 |
# File 'lib/nerdz/rebinds.rb', line 77 def post(path, params = {}, data = {}, initheader = nil, dest = nil, &block) path.merge_param!(params) data = data.to_param if data.is_a?(Hash) __old_post__(path, data, initheader, dest, &block) end |