Sha256: 667000a346dcd760e6229278eaf081c499954a474551e784e6fea0e3f780cb75

Contents?: true

Size: 855 Bytes

Versions: 20

Compression:

Stored size: 855 Bytes

Contents

package com.benlangfeld.ruby_speech;

import org.jruby.Ruby;
import org.jruby.RubyClass;
import org.jruby.RubyModule;
import org.jruby.RubyObject;
import org.jruby.runtime.ObjectAllocator;
import org.jruby.runtime.builtin.IRubyObject;
import org.jruby.runtime.load.BasicLibraryService;

public class RubySpeechService implements BasicLibraryService {
  public boolean basicLoad(Ruby ruby) {
    RubyModule ruby_speech = ruby.defineModule("RubySpeech");
    RubyModule grxml = ruby_speech.defineModuleUnder("GRXML");
    RubyClass matcher = grxml.defineClassUnder("Matcher", ruby.getObject(), new ObjectAllocator() {
      public IRubyObject allocate(Ruby runtime, RubyClass rubyClass) {
        return new RubySpeechGRXMLMatcher(runtime, rubyClass);
      }
    });
    matcher.defineAnnotatedMethods(RubySpeechGRXMLMatcher.class);
    return true;
  }
}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ruby_speech-2.3.2-java ext/ruby_speech/RubySpeechService.java
ruby_speech-2.3.2 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.3.1-java ext/ruby_speech/RubySpeechService.java
ruby_speech-2.3.1 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.3.0-java ext/ruby_speech/RubySpeechService.java
ruby_speech-2.3.0 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.2.2-java ext/ruby_speech/RubySpeechService.java
ruby_speech-2.2.2 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.2.1-java ext/ruby_speech/RubySpeechService.java
ruby_speech-2.2.1 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.2.0-java ext/ruby_speech/RubySpeechService.java
ruby_speech-2.2.0 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.1.2-java ext/ruby_speech/RubySpeechService.java
ruby_speech-2.1.2 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.1.1-java ext/ruby_speech/RubySpeechService.java
ruby_speech-2.1.1 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.1.0-java ext/ruby_speech/RubySpeechService.java
ruby_speech-2.1.0 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.0.2 ext/ruby_speech/RubySpeechService.java
ruby_speech-2.0.1 ext/ruby_speech/RubySpeechService.java