class Gem::Commands::YankCommand

def get_platform_from_requirements(requirements)

def get_platform_from_requirements(requirements)
  Gem.platforms[1].to_s if requirements.key? :added_platform
end