diff --git a/java_in_ruby.rb b/java_in_ruby.rb index 761f848..a263dc8 100644 --- a/java_in_ruby.rb +++ b/java_in_ruby.rb @@ -8,10 +8,8 @@ def main(arg) ; yield ; end System = OpenStruct.new(out: STDOUT) -class IO - def println(str) - puts str - end +def STDOUT.println(str) + puts str end public static void main(String args[]){