在Java中,有一个"this"函数指向它的方法.Ruby中有相应的东西吗?例如,有:
def method
this.method
end
Run Code Online (Sandbox Code Playgroud) 当我运行命令"git push -f heroku"时,我遇到以下问题:
获取存储库,完成.计数对象:55,完成.Delta压缩最多使用4个线程.压缩对象:100%(30/30),完成.书写对象:100%(35/35),9.26 KiB | 0字节/秒,完成.总计35(delta 20),重复使用14(delta 2)
----->删除.DS_Store文件
----->检测到Ruby应用程序
----->编译Ruby/Rails
----->使用Ruby版本:ruby-2.0.0
----->使用1.5.2安装依赖项
Run Code Online (Sandbox Code Playgroud)Ruby version change detected. Clearing bundler cache. Old: ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux] New: ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-linux] Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment You are trying to install in deployment mode after changing your Gemfile. Run `bundle install` elsewhere and add the updated Gemfile.lock to version control. You have deleted from the Gemfile: * geocoder Bundler …