【问题标题】:How does one embed IIRB inside of a IronRuby program?如何在 IronRuby 程序中嵌入 IIRB?
【发布时间】:2010-08-31 17:35:54
【问题描述】:

在 Ruby main 中,您可以将 IRB 嵌入到 Ruby 脚本中,如 here 所述。有没有办法在 IronRuby 脚本中使用 IIRB 做类似的事情?

【问题讨论】:

    标签: ruby ironruby irb


    【解决方案1】:

    http://wiki.github.com/ironruby/ironruby/debugging 可能对您有用(“repl binding”与上面的相同,我相信,并且是我使用的)。

    【讨论】:

    • 我们现在正在使用确切的repl(binding) 类,但出于几个原因,我们想使用实际的 IIRB,主要是多行支持。不过,感谢您的回复!
    • 你提到的代码应该可以在 Ironruby 中工作——不是吗?
    • 它在 IronRuby 中不太适用,因为它使用了 Ruby IRB 类,但我们找不到等效的 IIRB 类。
    • 似乎在这里工作正常:gist.github.com/568628 你指的是什么 IIRB 类?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-30
    • 2022-01-14
    • 2011-01-19
    相关资源
    最近更新 更多