🖥

Ruby - no implicit conversion of Symbol into Integer

に公開

TypeError: no implicit conversion of Symbol into Integer

配列に対してシンボルでハッシュを呼ぼうとするとエラー

[][:a]
# TypeError: no implicit conversion of Symbol into Integer

TypeError: no implicit conversion of String into Integer

配列に対して文字列でハッシュを呼ぼうとするとエラー

[]["a"]
# TypeError: no implicit conversion of String into Integer

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2022-10-25

Discussion