Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Currently, CI is failing b/c singleton_class? was added to MRI2.1 but not Rbx. e.g. https://travis-ci.org/pry/pry/builds/32133642
I did not look into why it is suddenly failing now. For quite a while, Rbx builds were erroring out (e.g. https://travis-ci.org/pry/pry/jobs/30421343) They are no longer erroring, but are now failing, for the above reason.
Context
Rbx has recently (11 days ago, 30 July 2014) received this method rubinius/rubinius@2e71722
But the functionality has been available since April 2011 rubinius/rubinius@4310f6b
Solution
Fix the failures by falling back to the older functionality if we are on Rubinius, and the new method is unavailable.