Ruby Motion comes with many built-in functions that are formatted as follows:
def tableView(tv, numberOfRowsInSection:section)
end
I want to do my own functions; far-fetched example:
class Timeser
def multiplyNumber(one byNumber:two)
one*two
end
end
This code will not compile under ruby ββmovement 1.0 ... Is there a way to do this? If so, how?
source
share