Mock Ruby standard library modules and classes with sources written in pure Ruby (extracted from MacRuby)