Class: Naether::sJa::sJRu

Inherits:
Object
  • Object
show all
Defined in:
lib/naether/java/jruby.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (sJRu) initialize

Returns a new instance of sJRu



20
21
22
23
24
25
26
27
28
29
# File 'lib/naether/java/jruby.rb', line 20

#
      def initialize
require 'java'

naether_jar = Naether::Configuration.naether_jar
      
@loaded_paths = []

load_paths(naether_jar)  
@class_loader = com.tobedevoured.naether.Pa

Instance Attribute Details

- (Object) reader :load (readonly)

Returns the value of attribute reader :load



14
15
16
# File 'lib/naether/java/jruby.rb', line 14

def reader :load
  @reader :load
end

Instance Method Details

- (Object) convert_to_java_list(SSPATH << )



115
116
117
118
119
# File 'lib/naether/java/jruby.rb', line 115

ed_path )
  $CLASSPATH << expanded_path
  load_paths << expanded_path
  @loaded_paths << expanded_path
end

- (Object) create( # @pa, * [Ar)

Parameters:

  • args (Array)

    Array of constructor arguments



37
38
39
# File 'lib/naether/java/jruby.rb', line 37

ss to create
# @param [Array] args Array of constructor arguments
def create( tar

- (Object) internal_load_paths( )



68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/naether/java/jruby.rb', line 68

end
      
      #
      # Load a path into the internal Naether ClassLoader
      #
      # @param [Array] paths as an Array of String paths or a String path
      #
      def internal_load_paths(paths)
load_paths = []
unless paths.is_a? Array
  paths = [paths]
end

pat

- (Object) load_paths( )



91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/naether/java/jruby.rb', line 91

path )
    
    load_paths << expanded_path
  end
end

load_paths
      end
      
      #
      # Load a path onto the parent ClassLoader
      #
      # @param [Array] paths as an Array of String paths or a String path
      #
      def load_paths(paths)
load_paths = []
unless paths.is_a? Array