brew update failes with the error
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0"
I have deleted /System/Library/Frameworks/Ruby.framework
bacause of some Ruby conflicts. I know this was a big mistake.
Is there any way to fix this issue?