developer's diary

最近はc#のエントリが多いです

Rubyでメソッド(関数)を作成

#メソッドの定義
def display(str)
  printf("%s world",str)
end

#メソッドの呼び出し
display("hello")