Closest Ruby representation of a 'public static final' class variable in Java?

Posted by Hosh on Stack Overflow See other posts from Stack Overflow or by Hosh
Published on 2010-03-14T07:44:00Z Indexed on 2010/03/14 7:55 UTC
Read the original article Hit count: 248

Filed under:
|

Given the Java code below, what's the closest you could represent this private static final variable in a Ruby class?

public class DeviceController
{
  ...
  private static final Device myDevice = Device.getDevice("mydevice");
  ...
  public static void main(String args[])
  {
   ...
  }
}

© Stack Overflow or respective owner

Related posts about ruby

Related posts about java