Module: TyphoeusOAuth::OAuthExtension
- Defined in:
- lib/typhoeus_oauth/oauth_extension.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/typhoeus_oauth/oauth_extension.rb', line 3 def self.included(base) base.send :include, InstanceMethods base.class_eval <<-EOV, __FILE__, __LINE__ old_post_data = self.instance_method(:post_data=) define_method(:post_data=) do |data| @post_data = data old_post_data.bind(self).call data end EOV end |