title: What does a Java static method look like in Ruby?
body: <p>In Java, a 'static method' would look like this:</p>
  
  <pre><code>class MyUtils {
      . . .
      public static double mean(int[] p) {
          int sum = 0;  // sum of all the elements
          for (int i=0; i&lt;p.length; i++) {
              sum += p[i];
          }
          return ((double)sum) / p.length;
      }
      . . .
  }
  
  // Called from outside the MyUtils class.
  double meanAttendance = MyUtils.mean(attendance);
  </code></pre>
  
  <p>What's the equivalent 'Ruby way' of writing a 'static method'?</p>