ホーム
:
その1
:
基本
:
【メソッドの作成】
前へ
次へ
def メソッド名
メソッドで実行したい処理
end
(例)
def hello
print("Hello, Ruby.\n")
end
hello()
基本 に戻る