org.jruby.environment
Interface IOSEnvironmentReader
- public interface IOSEnvironmentReader
Method Summary |
java.util.Map |
getVariables(Ruby runtime)
Get the operating system environment variables. |
boolean |
isAccessible(Ruby runtime)
Determines whether the OS environment variables are accessible using a given implementation. |
getVariables
public java.util.Map getVariables(Ruby runtime)
- Get the operating system environment variables.
Returns an string map view of the current system environment.
If environment variables,are not supported, then null is returned. (isEnvironmentAccessible() returns false).
If there are no variables defined, then an empty Map is returned.
- Returns:
- the operating system environment variables in a Map.
- Throws:
OSEnvironmentReaderExcepton
- if there is a problem accessing the environment variables.
isAccessible
public boolean isAccessible(Ruby runtime)
- Determines whether the OS environment variables are accessible using a given implementation.
- Returns:
- whether the OS environment variables are accessible.
Copyright © 2002-2007 JRuby Team. All Rights Reserved.