LoginSignup
4
4

More than 5 years have passed since last update.

rails cで変数をさくっとコピペしたい時

Posted at

自分用メモに

output = (1...100).to_a
IO.popen('pbcopy', 'w') { |f| f << output.to_s } # これでコピペされた状態になる
4
4
1

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
4
4