Loading [MathJax]/jax/element/mml/optable/BasicLatin.js

随笔分类 -  Ruby

Ruby快速入门
摘要:Rb是什么 ?交互式Ruby(IRB)为实验提供了一个shell。内置IRB shell,你可以立即一行行查看表达式的结果。该工具自带Ruby安装,所以你必须做一些额外的IRB工作无关。只需键入在命令提示符IRB和交互式Ruby会话将启动.Ruby语法:Ruby代码一般忽略空白字符,如空格和制表符,... 阅读全文
posted @ 2014-12-15 23:14 heidsoft 阅读(520) 评论(0) 推荐(0) 编辑
在 Ruby 中执行 Shell 命令的 6 种方法
摘要:我们时常会与操作系统交互或在 Ruby 中执行 Shell 命令。Ruby为我们提供了完成该任务的诸多方法。ExecKernel#exec通过执行给定的命令来替换当前进程,例如: irb>> exec 'echo "hello HOSTNAME"'hello codefun$注意exec利用ec... 阅读全文
posted @ 2014-12-15 22:28 heidsoft 阅读(1197) 评论(0) 推荐(0) 编辑
使用RVM更新Ruby 版本
摘要:http://rvm.io/rvm/installInstall RVM (development version):\curl -sSL https://get.rvm.io | bashWithout autolibs\curl -sSL https://get.rvm.io | bash -s... 阅读全文
posted @ 2014-08-03 15:56 heidsoft 阅读(565) 评论(0) 推荐(0) 编辑
ruby 【rails在win7_64位操作系统安装】
摘要:gem update --system --source http://production.s3.rubygems.org安装截图 阅读全文
posted @ 2014-07-15 22:27 heidsoft 阅读(167) 评论(0) 推荐(0) 编辑
ruby 访问权限
摘要:###################### 访问权限#####################class HeidSoft##默认方法 def method1 ##### endprotected def method2 ##### endpri... 阅读全文
posted @ 2014-07-15 19:44 heidsoft 阅读(194) 评论(0) 推荐(0) 编辑
ruby 类方法、实例方法、类变量
摘要:#######################类变量######################class Cloud @@count=0 def initialize(user,password,ip) @user = user @password ... 阅读全文
posted @ 2014-07-15 19:32 heidsoft 阅读(256) 评论(0) 推荐(0) 编辑
ruby 类创建-继承-消息
摘要:##############################################create ruby a class#@符号表示实例变量,相当于java的private 属性#############################################class Perso... 阅读全文
posted @ 2014-07-14 23:06 heidsoft 阅读(213) 评论(0) 推荐(0) 编辑
ruby 数组与散列
摘要:def say_goodnight(name) result ="Good night ." +name return resultenddef say_goodmorning(name) result ="Good morning .#{name}" return resultendde... 阅读全文
posted @ 2014-07-14 18:04 heidsoft 阅读(257) 评论(0) 推荐(0) 编辑
Custom Sublime Text Build Systems For Popular Tools And Languages
摘要:from:http://addyosmani.com/blog/custom-sublime-text-build-systems-for-popular-tools-and-languages/from:http://blog.csdn.net/hexudong08/article/details... 阅读全文
posted @ 2014-07-14 00:38 heidsoft 阅读(281) 评论(0) 推荐(0) 编辑
ruby 变量和方法
摘要:def say_goodnight(name) result ="Good night ." +name return resultenddef say_goodmorning(name) result ="Good morning .#{name}" return resultendde... 阅读全文
posted @ 2014-07-13 23:38 heidsoft 阅读(327) 评论(0) 推荐(0) 编辑
Ruby学习资源汇总
摘要:from:http://segmentfault.com/a/1190000000362058Ruby 语言Try Ruby: 无需在你的系统中安装。Ruby,只要通过浏览器便可立即体验 Ruby。Learn Ruby the Hard Way: 来自 Zed A. Shaw 的笨办法学习系列,该书... 阅读全文
posted @ 2014-07-13 22:05 heidsoft 阅读(185) 评论(0) 推荐(0) 编辑




点击右上角即可分享
微信分享提示