Method: Gem::PlatformMismatch#add_platform
- Defined in:
- lib/rubygems/errors.rb
#add_platform(platform) ⇒ Object
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.
131 132 133 |
# File 'lib/rubygems/errors.rb', line 131 def add_platform(platform) @platforms << platform end |