道喜技术日记 .^. 天天红玉世界

Rails Ruby MacOSX 。。。创新来自于刻苦的实践和勤奋的思考... www.hhtong.com


Ruby世界:更完善的Ruby终端软件Pry

Gudao Luo2011-04-30 at 11:24发表的

2011-04-30-pry
  • 说明
    • Pry是类似于IRB一样的软件;
    • 与IRB相比,Pry是功能更为强大的Ruby终端;
    • Pry是基于SLIME(he Superior Lisp Interaction Mode for Emacs);
    • Pry实现了浏览源代码、代码遍历、代码调试和实时调用等;
    • Pry是一款有前途的Ruby终端。
评论: 0 (view/add your own) 标记: Ruby, irb, pry, tools

Ruby世界:在Ruby和Rails交互界面中使用Vim

Gudao Luo2010-06-16 at 13:04发表的

2010-06-16 1402

  • 安装命令
    • sudo gem install interactive_editor
  • 配置方法
    • vim ~/.irbrc
    • vim ~/.vimrc
  • 使用方法
    1. 启动下面命令之一
      • irb
      • ./script/console #Rails2
      • rails console #Rails3
    2. 输入vi或者vim
    3. 输入需要在交互界面的Ruby语言代码
    4. 退出vi或者vim

Rails框架:终端应用程序的微型视图框架Hirb

Gudao Luo2009-12-16 at 18:19发表的

2009-12-18 1816-hirb
  • 创建Rails程序实例演示命令清单
  • 使用hirb演示实例
  • 最重要的参考资料:
    • http://github.com/cldwalker/hirb
    • http://tagaholic.me/hirb/
    • http://github.com/jeremymcanally/rails-templates
    • http://railscasts.com/episodes/148-app-templates-in-rails-2-3
    • http://m.onkey.org/2008/12/4/rails-templates
  • 参考资料:
    • http://www.ozmox.com/2009/11/01/enjoy-working-with-models-using-hirb/
    • http://tagaholic.me/2009/03/13/hirb-irb-on-the-good-stuff.html
    • http://github.com/BJClark/rails-templates/blob/d8889e1c771847f75641503e478c130e959e1686/scidept.rb
    • http://www.geekskillz.com/articles/11
    • http://tagaholic.me/2010/02/16/two-dimensional-console-menus-with-hirb.html http://tagaholic.me/2010/02/16/two-dimensional-console-menus-with-hirb.html

Ruby语言工具:使用工具irb变得更加方便

Gudao Luo2007-12-14 at 21:49发表的

使用工具irb变得更加方便
  • 工具名称
    • Utility Belt
  • 安装方法
    • gem install utility_belt
    • vi %USER_HOME%\.irbrc
    • 增加下面代码到文件.irbrc中
      require ‘rubygems’
      require ‘utility_belt’
    • %USER_HOME% [Windows] =: C:\Documents and Settings\gudao
    • %USER_HOME% [Ubuntu] =: /home/gudao
  • 使用方法
    • 打开系统终端
    • irb【回车键】
    • >> grep_classes(“num”)【回车键】
      #=> [“Bignum”, “Fixnum”, “Numeric”, “REXML::SyncEnumerator”]