Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::NameTuple.to_basic
to_basic(list)
lib/rubygems/name_tuple.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/name_tuple.rb, line 51
def self.to_basic(list)
list.map {|tuple| [tuple.name, tuple.version, tuple.platform] }
end
Turn an array of NameTuple objects back into an array of
- name, version, platform
-
tuples.