Please sign in to comment.
Rely on NoMethodError#name when deciding to raise DelegationError.
Different Ruby implementations present backtraces differently, as it should be an information consumed by humans. A better implementation should use data from the error, in this case returned by NoMethodError#name. Fixes issues with Rubinius, which presents backtraces differently from MRI.
- Loading branch information...
Showing with 1 addition and 2 deletions.