by DarwinOS · 14y ago · 0 comments
def functions(with, this: syntax="default value") end
but over all, I think rubmyotion rocks and I hope and brings some great Objective-c/Cocoa world into ruby-world and vice-versa.
syntax = options[:syntax] || "default value"
...in the method body. Still, it would be nice to have it built in.
http://rosettacode.org/wiki/Named_parameters#Ruby.27s_future
I would expect MacRuby and RubyMotion to follow.