Cleanup Array and add Reflector #2077
evanphx wants to merge 2 commits into masterfrom array+reflector
Commits on Dec 4, 2012
Commits on Dec 5, 2012
Dec 5, 2012
Array left it's guts exposed to deal with the way that data has to be exposed in ruby. To clean things up, I've introduce a Reflector class which is a simple mirror. This can easily access the internal data of an object. Additionally, rather than using instance_variable_[get|set] the JIT can make access quite fast because it doesn't have to deal with any edgecases.