Is there something like bpython for Ruby?

前端 未结 2 1810
孤街浪徒
孤街浪徒 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:10

    You can extend irb to achieve all of bpython's functionality and more with the right gems:

    • wirble: for syntax highlightning (as you already know)
    • bond: for more advanced autocompletion
    • utilitybelt: for pastebin-like commands
    • sketches: for editing and evaluating code easily
    • boson: command framework for creating libraries of commands to be loaded as needed
    • hirb: framework for associating views per class

    For more gems, see here.

提交回复
热议问题