teleprompter in jruby

2 views
Skip to first unread message

drio

unread,
Mar 13, 2011, 6:52:19 PM3/13/11
to coding kata
I have also problems with this interface:

public abstract String translate (String text, String[][] dictionary);

Not sure how to implement those semantics in jruby.

My full jruby code looks like:

require
'java'
java_package
'org.codingkata.unit'
java_import
'org.codingkata.unit.api.IKataSolution'

class
MyKata
java_implements
IKataSolution

# YOUR
IMPLEMENTATION
java_signature 'public abstract String translate (String text,
String[][]
dictionary)';
def self.translate(text,
dictionary)
# code
here

end
end


Anyone?
-drd
Reply all
Reply to author
Forward
0 new messages