// Java
import static java.nio.file.StandardWatchEventKind.*;
Ruby
include_class ‘java.nio.file.StandardWatchEventKind’
ENTRY_DELETE = StandardWatchEventKind::ENTRY_DELETE
ENTRY_CREATE = StandardWatchEventKind::ENTRY_CREATE
Is there a better way of converting this to Ruby?
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Ruby
include_class ‘java.nio.file.StandardWatchEventKind’
ENTRY_DELETE = StandardWatchEventKind::ENTRY_DELETE
ENTRY_CREATE = StandardWatchEventKind::ENTRY_CREATE
Is there a better way of converting this to Ruby?
How about this?
include_class ‘java.nio.file.StandardWatchEventKind’
include StandardWatchEventKind
I’d like to know if there is an equivalent to importing just one or
two methods/constants though…
TX
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email