Re:Show HN: I built a Wordle decoder that guesses your guesses
by mattlock on Saturday March 05, 2022 @01:44PM
(#30570549)
Ah, that "_1" numbered parameter syntax was added in Ruby 2.7
I actually hadn't used that syntax before this project, was interested in trying it out. I'll document that it only works with 2.7 or later.
/Library/Ruby/Gems/2.6.0/gems/wordle_decoder-0.1.2/lib/wordle_decoder/wordle_share.rb:8:in `block in final_line?': undefined local variable or method `_1' for WordleDecoder::WordleShare:Class (NameError) from /Library/Ruby/Gems/2.6.0/gems/wordle_decoder-0.1.2/lib/wordle_decoder/wordle_share.rb:8:in `any?' from /Library/Ruby/Gems/2.6.0/gems/wordle_decoder-0.1.2/lib/wordle_decoder/wordle_share.rb:8:in `final_line?' from /Library/Ruby/Gems/2.6.0/gems/wordle_decoder-0.1.2/bin/wordle_decoder:14:in `<top (required)>' from /usr/local/bin/wordle_decoder:23:in `load' from /usr/local/bin/wordle_decoder:23:in `<main>'