【发布时间】:2013-05-26 22:20:55
【问题描述】:
我有一些代码要从 MacRuby 移植到 RubyMotion,但出现 TCPServer Name 错误:这是错误消息:
app_delegate.rb:29:in `control_server:': uninitialized constant AppDelegate::TCPServer (NameError)
这是导致问题的代码行:
dts = TCPServer.new(ip, port)
我读到 RubyMotion 中不包含一些来自 Ruby 的类,但我不确定哪些类以及如何确定哪些类不可用。
谢谢
【问题讨论】:
标签: macos rubymotion