#328: Calling a ObjC-method with a named argument which is a Ruby keyword does
not work
------------------------+---------------------------------------------------
Reporter: d...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: minor | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
------------------------+---------------------------------------------------
{{{
macruby -e "framework 'ScriptingBridge'; term =
SBApplication.applicationWithBundleIdentifier('com.apple.terminal');
term.doScript( 'echo hello', in:nil)"
}}}
gives an error:
{{{
-e:1: syntax error, unexpected keyword_in, expecting ')'
...erm.doScript( 'echo hello', in:nil)
... ^
}}}
Calling by selector is working fine:
{{{
macruby -e "framework 'ScriptingBridge'; term =
SBApplication.applicationWithBundleIdentifier('com.apple.terminal');
term.performSelector( :'doScript:in:', withObject:'echo hello',
withObject:nil)"
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/328>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel