From: nagachika00@... Date: 2014-08-24T15:15:01+00:00 Subject: [ruby-core:64535] [ruby-trunk - Bug #10113] [Feedback] Ruby memoization behaving oddly when using hash keys with spaces Issue #10113 has been updated by Tomoyuki Chikanaga. Status changed from Open to Feedback Hello, Ron. Thank you for your report. But I cannot understand what is the "fail" you mean. Please give us a self-contained executable script to clarify the point. Thanks. ---------------------------------------- Bug #10113: Ruby memoization behaving oddly when using hash keys with spaces https://bugs.ruby-lang.org/issues/10113#change-48465 * Author: Ron Arias * Status: Feedback * Priority: Normal * Assignee: ruby-core * Category: core * Target version: * ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- Trying to use simple Hash memoization with a ruby hash in a class method, it "fails" when having spaces as the hash key. Example code is attached. When calling the memoization method, it fails to maintain the instance variable. It resets the variable every time the method is called. When not having spaces in the key of the Hash, it works as it should, memoizing the variable. P.S. Despite my ruby version indicated bellow, it fails in the newest as well. ---Files-------------------------------- memoization_issue.rb (305 Bytes) -- https://bugs.ruby-lang.org/