org.jruby.runtime.load
Interface ILoadService

All Known Implementing Classes:
LoadService

public interface ILoadService

Version:
$Revision: 1.3 $
Author:
jpetersen

Method Summary
 void addAutoload(java.lang.String name, IAutoloadMethod loadMethod)
           
 IRubyObject autoload(java.lang.String name)
           
 java.util.ArrayList getLoadedFeatures()
           
 java.util.ArrayList getLoadPath()
           
 void init(Ruby runtime, java.util.List additionalDirectories)
          Init the LOAD_PATH array.
 boolean isAutoloadDefined(java.lang.String name)
           
 boolean load(java.lang.String file)
           
 void registerBuiltin(java.lang.String name, Library library)
           
 boolean require(java.lang.String file)
           
 

Method Detail

init

public void init(Ruby runtime,
                 java.util.List additionalDirectories)
Init the LOAD_PATH array. An array of strings, where each string specifies a directory to be searched for Ruby scripts and binary extensions used by the load and require methods. The initial value is the value of the arguments passed via the -I command-line option, followed by an installation-defined standard library location, followed by the current directory (``.''). This variable may be set from within a program to alter the default search path; typically, programs use $: << dir to append dir to the path.


load

public boolean load(java.lang.String file)

require

public boolean require(java.lang.String file)

getLoadPath

public java.util.ArrayList getLoadPath()

getLoadedFeatures

public java.util.ArrayList getLoadedFeatures()

isAutoloadDefined

public boolean isAutoloadDefined(java.lang.String name)

autoload

public IRubyObject autoload(java.lang.String name)

addAutoload

public void addAutoload(java.lang.String name,
                        IAutoloadMethod loadMethod)

registerBuiltin

public void registerBuiltin(java.lang.String name,
                            Library library)


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.