lib/open-nlp.rb in open-nlp-0.1.0 vs lib/open-nlp.rb in open-nlp-0.1.1

- old
+ new

@@ -1,31 +1,35 @@ module OpenNLP # Library version. - VERSION = '0.1.0' + VERSION = '0.1.1' # Require Java bindings. require 'open-nlp/bindings' - OpenNLP::Bindings.bind # Require Ruby wrappers. require 'open-nlp/classes' + # Setup the JVM and load the default JARs. + def self.load + OpenNLP::Bindings.bind + end + # Load a Java class into the OpenNLP # namespace (e.g. OpenNLP::Loaded). - def load_class(*args) + def self.load_class(*args) OpenNLP::Bindings.load_class(*args) end # Forwards the handling of missing # constants to the Bindings class. - def const_missing(const) + def self.const_missing(const) OpenNLP::Bindings.const_get(const) end # Forward the handling of missing # methods to the Bindings class. - def method_missing(sym, *args, &block) + def self.method_missing(sym, *args, &block) OpenNLP::Bindings.send(sym, *args, &block) end -end +end \ No newline at end of file