LoginSignup
0
0

More than 3 years have passed since last update.

Ruby 配列結合

Posted at

環境

・ruby 2.7
・rails 5.1.6

配列結合

ary = ["a","b","c"]
p ary.join

=> "abc" #配列の中にある要素を全て結合

結合されている配列を一文字区切りにする

p ary.join(",")

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0