*called the "splat operator"; I'm not sure I can give you a technical definition (although I’m sure that you will find it soon enough with Google), but the way I would describe it is that it basically replaces multiple letters with values ​​separated by commas in the code.
, Hash[], . Hash [], :
h = Hash["foo", 1, "bar", 2]
, -, ; () . * , - , , movie_popularity.sort_by{|m,p| p}.reverse.flatten.
flatten: sort_by , Enumerable, ( Array Hash) . , , , :
hash.each { |value| ... }
:
hash.each { |key, value| ... }
, . , sort_by . flatten , :
# Returns [1, 2, 3, 4]
[[1, 2], [3, 4]].flatten