Skip to content

Instantly share code, notes, and snippets.

@iwazer
Created May 22, 2013 03:49
Show Gist options
  • Save iwazer/5625119 to your computer and use it in GitHub Desktop.
Save iwazer/5625119 to your computer and use it in GitHub Desktop.
Object.class_eval { remove_const :B }
# => B
class B < A; def hoge; puts @@hoge; end; end
# => nil
B.new.hoge
# => 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment