Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
KKKOOO
@wzhang1987
会员
第 5296 位会员 / 2013-01-15

11 篇帖子 / 20 条回帖
0 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 求助关于 sublime text 3 中 gets () 的问题 at 2014年05月10日

    ...

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

    #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 2013年02月03日

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

  • 请问以下 ruby 和 gem 的安装有没有问题? at 2013年02月03日

    先用一个这个命令: 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 2013年02月03日

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

  • 请问以下 ruby 和 gem 的安装有没有问题? at 2013年02月03日

    安装 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 2013年01月30日

    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 2013年01月20日

    #1 楼 @xds2000 已经下了

  • 请问 rails 在哪个平台下学习比较好? at 2013年01月19日

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

  • 请问 rails 在哪个平台下学习比较好? at 2013年01月19日

    MAC。。。。 人穷伤不起

  • 请问 rails 在哪个平台下学习比较好? at 2013年01月18日

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

  • 请问 P 这个方法的讲解哪里有? at 2013年01月18日

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

  • 请问 P 这个方法的讲解哪里有? at 2013年01月18日

    #4 楼 @Rei 谢谢

  • 请问 P 这个方法的讲解哪里有? at 2013年01月18日

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

  • 类别可以复写吗? at 2013年01月18日

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

  • 类别可以复写吗? at 2013年01月17日

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

  • 类别可以复写吗? at 2013年01月17日

    额,不行

  • 这个代表什么? at 2013年01月17日

    #1 楼 @luikore 谢谢

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

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

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

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

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