Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
KKKOOO
@wzhang1987
Member
NO. 5296 / 2013-01-15

11 Topics / 20 Replies
0 Followers
0 Following
0 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 求助关于 sublime text 3 中 gets () 的问题 at May 10, 2014

    ...

  • there is something wrong with the install,please tell me how to fix it,thanks! at February 27, 2014

    #2 楼 @hozaka

    good@good-Rev-1-0:~$ ruby -v ruby 2.0.0p451 (2014-02-24 revision 45167) [i686-linux] good@good-Rev-1-0:~$ which good@good-Rev-1-0:~$ which ruby /home/good/.rvm/rubies/ruby-2.0.0-p451/bin/ruby

    good ,thanks

  • 请问以下 ruby 和 gem 的安装有没有问题? at February 03, 2013

    用 wubi 的 ubentu 装得要吐血了,各种错误各种无反映各种重装。。。。 wiki 里面的步骤 0 加上 rvm requirements,再加上 apt-get 装一些装不了的再卸载 apt-get remove,还要多 source/gem source 几次最后 gem 就差不多了。。。 终于装上了,虽然还有些问题。。。

  • 请问以下 ruby 和 gem 的安装有没有问题? at February 03, 2013

    先用一个这个命令: rvm requirements 然后通过提示下载安装了一堆不知到什么的东东,然后 rvm pkg install zlib rvm remove 1.9.3 rvm install 1.9.3 这里就安装不成功了。。。 提示:gemset.pristine 错误 .rvm/log/ruby-1.9.3-p374/gemset.pristine.log

  • 请问以下 ruby 和 gem 的安装有没有问题? at February 03, 2013

    找到 2 个相关文章,试一试好了。。。 http://blog.csdn.net/liuyanzhi08/article/details/7316505 http://www.16kan.com/post/206083.html

  • 请问以下 ruby 和 gem 的安装有没有问题? at February 03, 2013

    安装 rails 时使用命令: gem install bundler rails

    出现错误: @ubuntu:~$ gem install bundler rails ERROR: Loading command: install (LoadError) cannot load such file -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand

  • ruby 中有 Mixin 这个概念吗? at January 30, 2013

    Inheritance and Mixins

    Some object-oriented languages (notably C++) support multiple inheritance, where a class can have more than one immediate parent, inheriting functionality from each. Although powerful, this technique can be dangerous, as the inheritance hierarchy can become ambiguous. Other languages, such as Java, support single inheritance. Here, a class can have only one immediate parent. Although cleaner (and easier to implement), single inheritance also has drawbacks---in the real world things often inherit attributes from multiple sources (a ball is both a bouncing thing and a spherical thing, for example). Ruby offers an interesting and powerful compromise, giving you the simplicity of single inheritance and the power of multiple inheritance. A Ruby class can have only one direct parent, and so Ruby is a single-inheritance language. However, Ruby classes can include the functionality of any number of mixins (a mixin is like a partial class definition). This provides a controlled multiple-inheritance-like capability with none of the drawbacks. We'll explore mixins more beginning on page 98. So far in this chapter we've been looking at classes and their methods. Now it's time to move on to the objects, such as the instances of class Song.

  • 简单定义求解释 at January 20, 2013

    #1 楼 @xds2000 已经下了

  • 请问 rails 在哪个平台下学习比较好? at January 19, 2013

    #22 楼 @alucardpj 完全不了解 linux。。先从 wubi 的 unbuntu 开始吧,不知道能不能 coding。。

  • 请问 rails 在哪个平台下学习比较好? at January 19, 2013

    MAC。。。。 人穷伤不起

  • 请问 rails 在哪个平台下学习比较好? at January 18, 2013

    #1 楼 @ted #2 楼 @lidashuang #3 楼 @search 3 人行必有我师,那就 linux,谢谢

  • 请问 P 这个方法的讲解哪里有? at January 18, 2013

    其实 p Obj 就是原样输出,p Obj.inspect 就是强制转换成 to_s 后输出

  • 请问 P 这个方法的讲解哪里有? at January 18, 2013

    #4 楼 @Rei 谢谢

  • 请问 P 这个方法的讲解哪里有? at January 18, 2013

    #1 楼 @Rei 那请问 p Obj 和 p Obj.inspect 有什么区别呢?

  • 类别可以复写吗? at January 18, 2013

    #4 楼 @zhangjinzhu 我试了下好像不是复写,而是共享,即实例会去每个同名类里面查找需要的信息

  • 类别可以复写吗? at January 17, 2013

    奇怪了,为什么 inspect 可以呢?

  • 类别可以复写吗? at January 17, 2013

    额,不行

  • 这个代表什么? at January 17, 2013

    #1 楼 @luikore 谢谢

  • 请问 trap 是如何使用的?能给个简单的例子最好了! at January 15, 2013

    #5 楼 @luikore 。。。 windows 不能用吗。。。。

  • 请问 trap 是如何使用的?能给个简单的例子最好了! at January 15, 2013

    @sailtsao ruby 那个看是看过的,看不太懂。。 不清楚 trap 是怎么识别信号的,我回去看看你的链接,谢谢。

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English