Is there something like bpython for Ruby?

前端 未结 2 1805
孤街浪徒
孤街浪徒 2021-02-01 19:38

IRb is pretty plain compared to bpython, even when using wirble.

Is there any ruby equivalent of bpython?

2条回答
  •  盖世英雄少女心
    2021-02-01 20:17

    Use 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)
    • 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

    A tonne more great and original features

提交回复
热议问题