如果我運行rvm install 2.0.0,它將執行正常步驟(下載,解壓縮,配置,編譯,安裝),但結束時只是簡單地說: ruby-2.0.0-p0 is not installed.
To install do: 'rvm install ruby-2.0.0-p0'
我已經試過如下: rvm remove 2.0.0 rvm get head rvm requirements rvm i
爲什麼這不起作用? module StringRefinement
refine String do
def bar
length
end
end
end
using StringRefinement
"abcdefghijklmnopqrstuvwxyz".send(:bar)
#NoMethodError: undefined me