RubyVM::FrozenCore
An evil gem to expose hidden class in CRuby core.
Usage
RubyVM::FrozenCore
require 'rubyvm/frozencore'
RubyVM::FrozenCore
RubyVM::FrozenCore.methods
RubyVM::FrozenCore.send(:"core#undef_method", String, :prepend)
"b".prepend("a")
See also
There is already a gem with the same purpose.
https://github.com/charliesome/frozen_core
But it relied on a bug which was fixed in Ruby 2.1.0.
rubyvm-frozencore works with Ruby >= 2.1.0.
License
The gem is available as open source under the terms of the MIT License.