以下のコードは repl.it および codeacademy ラボでは失敗しますが、8 未満のキー長を選択すると機能します。irb ではどちらのキー長も失敗しません。
これは Web REPL だけの問題ですか、それともキーの長さに実際の制限があるのでしょうか?
class Fixnum
def in_words
words =
{
100000000 => "trillion"
}
puts words[self]
end
end
100000000.in_words