Are there any iPython-like shells for Ruby or Rails?

后端 未结 5 1546
庸人自扰
庸人自扰 2020-12-23 17:19

I love iPython and am learning RoR along with some libraries like Mechanize and I\'d like to be able to easily see what I\'m working with in terms of introspection. I would

相关标签:
5条回答
  • 2020-12-23 17:37

    There is an IPython notebook backed by Ruby kernel. Details about the project

    0 讨论(0)
  • 2020-12-23 17:40

    There is an irb tool to help autocomplete

    require 'irb/completion'
    
    0 讨论(0)
  • 2020-12-23 17:52

    You should definetively take a look at Pry (an IRB alternative and runtime developer console). It isn't as advanced as the current version of IPython, but it's the most advanced developer console we have in Ruby.

    0 讨论(0)
  • 2020-12-23 17:52

    try IRB http://en.wikipedia.org/wiki/Interactive_Ruby_Shell, or the rails console http://guides.rubyonrails.org/command_line.html. I don't know if either of them have autocomplete, but they are quality tools.

    0 讨论(0)
  • 2020-12-23 17:55

    Wirble is a convenient, if infrequently-updated way of bringing together some of these tools. It's not quite as complete as iPython, but gets pretty close. Among other things, it pulls in irb/completion.

    For rails, you can do the same, but use script/console from your rails' root directory to start irb.

    0 讨论(0)
提交回复
热议问题