From: hal.c.rogers@... Date: 2015-12-11T00:37:08+00:00 Subject: [ruby-core:72043] [Ruby trunk - Bug #11803] [Open] NoMethodError when calling String#gsub Issue #11803 has been reported by Hal Rogers. ---------------------------------------- Bug #11803: NoMethodError when calling String#gsub https://bugs.ruby-lang.org/issues/11803 * Author: Hal Rogers * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto * ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- Assigning the result of a call to String#gsub throws a NoMethodError. It seems to have to do with assigning the return value to a variable with the same name as the method returning the string gsub is called on. I've included short script which reproduces the issue. -- https://bugs.ruby-lang.org/