LoginSignup
1
0

More than 5 years have passed since last update.

メソッド

Last updated at Posted at 2015-06-13
  • reverse 文字列を逆から表示
  • upcase 小文字を大文字
  • include?(i) 配列の中にiがあるか真偽判定

include?メソッドは、文字列の中に引数の文字列が含まれるかどうかを調べ、含まれるときはtrue、含まれないときはfalseを返す。

  • take(n)

takeメソッドは、配列の先頭から引数n個の要素を取り出し、新しい配列を作成して返す。

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