PageRenderTime 32ms CodeModel.GetById 24ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/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
1module 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
9end