Skip to content

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

instance method

Gem::PlatformMismatch#add_platform

add_platform(platform)

append a platform to the list of mismatched platforms.

Platforms are added via this instead of injected via the constructor so that we can loop over a list of mismatches and just add them rather than perform some kind of calculation mismatch summary before creation.

See also .new #wordy also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1