简体   繁体   English

Ruby有什么类似bpython的东西吗?

[英]Is there something like bpython for Ruby?

IRb is pretty plain compared to bpython , even when using wirble . bpython相比, IRb非常简单,即使使用wirble也是如此

Is there any ruby equivalent of bpython? 有没有红宝石相当于bpython?

You can extend irb to achieve all of bpython's functionality and more with the right gems: 您可以使用正确的gem来扩展irb以实现所有bpython的功能和更多功能:

  • wirble: for syntax highlightning (as you already know) wirble:用于语法突出显示(如您所知)
  • bond : for more advanced autocompletion 债券 :用于更高级的自动完成
  • utilitybelt : for pastebin-like commands utilitybelt :用于类似pastebin的命令
  • sketches : for editing and evaluating code easily 草图 :轻松编辑和评估代码
  • boson : command framework for creating libraries of commands to be loaded as needed boson :用于创建要根据需要加载的命令库的命令框架
  • hirb : framework for associating views per class hirb :用于关联每个类的视图的框架

For more gems, see here . 有关更多宝石, 请参阅此处

Use Pry: http://pry.github.com 使用Pry: http//pry.github.com

It is written from scratch and let's you: 它是从头开始写的,让你:

  • view method source code 查看方法源代码
  • view method documentation (not using RI so you dont have to pre-generate it) 查看方法文档(不使用RI,因此您不必预先生成它)
  • pop in and out of different contexts 流入和流出不同的背景
  • invoke at runtime, in any context 在运行时,在任何上下文中调用
  • syntax highlighting 语法高亮
  • gist integration 要点整合
  • view and replay history 查看和重播历史记录
  • open editors to edit method using edit-method obj.my_method syntax 使用edit-method obj.my_method语法打开编辑器编辑方法

A tonne more great and original features 一吨更加伟大和原始的功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM