Newer
Older
Ruby / tango.rb
@KONNO Eita KONNO Eita on 6 Dec 2022 603 bytes 2022-12-06 20:53:31
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

puts"単語を入れたいときはa"
puts"単語を見たいときはn"

a = gets
if a
  class Nyuuryoku  #単語を入れるクラス
    @@hyou = []  #クラス変数
    
    def initialize(c,input)  #初期化
      @c = c
      @input = input
    end
    
    def tango #入力の実処理
      if @c
    puts"単語を覚えよう"
    printf("単語を入力\n",initialize(input))
    @input = @@hyou       
    puts hyou,lengs
      end
    end
  end
end

tangochou = Nyuuryoku.new()
tangochou.initialize = c
p Nyuuryoku.tango