[MacRuby-devel] [MacRuby] #530: Net::SSH doesn't work with MacRuby
MacRuby
ruby-noreply at macosforge.org
Thu Dec 31 03:35:58 PST 2009
#530: Net::SSH doesn't work with MacRuby
---------------------------------+------------------------------------------
Reporter: sk8tr1981@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: critical | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
Comment(by eloy.de.enige@…):
I'll try to explain as good as I can.
Protected methods may '''only''' be called without send by `self'. To
circumvent this you can use #send. However, the MacRuby dispatcher code
only checks whether or not the the caller is `self', but does '''not'''
skip that guard in case you're using #send.
The dispatch code is here:
http://github.com/masterkain/macruby/blob/master/dispatcher.cpp#L401
In case you want to fix it easily so you can get on with your project, I'd
suggest adding a public method which in turn calls the protected method.
Thus eliminating the need for #send.
Cheers!
--
Ticket URL: <http://www.macruby.org/trac/ticket/530#comment:6>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list