0

「ハッシュ」変数の値を返す最良の方法は何ですか?

define_method :hash_count do 
  char_count = 0
  while char_count < 25 do 
    hash = ''
    hash << 'X'
    char_count += 1
  end
end
4

1 に答える 1