Skip to content

Instantly share code, notes, and snippets.

@headius
Created January 23, 2015 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/5d6128645e1546a5c589 to your computer and use it in GitHub Desktop.
Save headius/5d6128645e1546a5c589 to your computer and use it in GitHub Desktop.
[--dev]
~/projects/jruby $ rvm jruby-1.7 do ruby -v auto.rb
jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_40-ea-b19 [darwin-x86_64]
NameError: Undefined method == for class 'ProxyObject'
undef_method at org/jruby/RubyModule.java:2330
ProxyObject at /Users/headius/projects/jruby/proxy_object.rb:2
(root) at /Users/headius/projects/jruby/proxy_object.rb:1
require at org/jruby/RubyKernel.java:1065
(root) at /Users/headius/.rvm/rubies/jruby-1.7.16/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
require at /Users/headius/.rvm/rubies/jruby-1.7.16/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
[--dev]
~/projects/jruby $ cat auto.rb
autoload :ProxyObject, 'proxy_object.rb'
require 'proxy_object'
[--dev]
~/projects/jruby $ cat proxy_object.rb
class ProxyObject < ::BasicObject
undef_method :==
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment