LoginSignup
0
2

More than 3 years have passed since last update.

【文字列の頭文字を削除】Ruby

Last updated at Posted at 2020-09-14

Rubyで文字列の頭文字を削除する方法

sample.rb
str = "あいうえお"
str[1..-1] # => "いうえお" 

シンプルでした!

ーーーーーーーーーーーーーーーーーーーーーーーー
引用元
https://myridia.com/dev_posts/view/93
ーーーーーーーーーーーーーーーーーーーーーーーー

0
2
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
2