Skip to content
On this page

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class · Ruby 3.0

Gem::PlatformMismatch

< Gem::ErrorReason 2 instance methods 1 class methods

Generated when trying to lookup a gem to indicate that the gem was found, but that it isn’t usable on the current platform.

fetch and install read these and report them to the user to aid in figuring out why a gem couldn’t be installed.

Class methods 1

Instance methods 2

Attributes
Read

the name of the gem

Read

The platforms that are mismatched

Read

the version