Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No #define_method on main object #2449

chrisseaton opened this issue Jan 11, 2015 · 2 comments

No #define_method on main object #2449

chrisseaton opened this issue Jan 11, 2015 · 2 comments


Copy link

chrisseaton commented Jan 11, 2015

This works on MRI, but not sure why

define_method :bar do

Where does it get define_method from? Works on MRI 2.2, Rbx 2.1.4, but not on JRuby 1.7 or master.

Copy link

cremno commented Jan 11, 2015

It isn't Module#define_method, it's directly defined on top self/main object (for some reason).

Copy link

headius commented Jan 12, 2015

@cremno Good find, thank you!

@headius headius added this to the JRuby milestone Jan 12, 2015
@headius headius self-assigned this Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants