0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

rubyにおけるオブジェクトとメソッドについて

Last updated at Posted at 2022-05-16

rubyにおけるオブジェクトとメソッドについて

puts "apple".length

オブジェクトとは

文字列や値、配列や浮動小数点等 物。
上記のコードでいう apple

メソッドとは

オブジェクトに意味を与えるもの
上記のコードを参照すると puts length
appleというオブジェクトの文字数を表示してになる。

補足

オブジェクトやメソッドは言語によって捉え方が違う。
学習していく中で語句の知識を深めていきたい。

0
0
2

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?