2
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 5 years have passed since last update.

Ruby勉強日誌1

Last updated at Posted at 2019-10-22

メソッド定義

method.rb
def メソッド名
  処理
end

each メソッド

each.rb
オブジェクト.each do | 変数 |
  puts 変数[] + []
end

while true (trueの間処理を繰り返す)

while.rb
while true
   = A
  if  == A
    処理1
 elsif  == B
    処理2
 else  == C
    処理3
    #trueではないので処理が終わる
end
2
0
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
2
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?