/lib/httparty/core_extensions.rb

http://github.com/jnunemaker/httparty · Ruby · 9 lines · 9 code · 0 blank · 0 comment · 1 complexity · cc441566518e9c9c81c0a6f40bcf6ca0 MD5 · raw file

  1. module HTTParty
  2. if defined?(::BasicObject)
  3. BasicObject = ::BasicObject #:nodoc:
  4. else
  5. class BasicObject #:nodoc:
  6. instance_methods.each { |m| undef_method m unless m =~ /^__|instance_eval/ }
  7. end
  8. end
  9. end