Module: Julia::LibJulia
- Defined in:
- lib/julia/init.rb,
lib/julia/libjulia.rb,
lib/julia/libjulia/finder.rb
Defined Under Namespace
Modules: Finder
Class Method Summary collapse
Class Method Details
.const_missing(name) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/julia/init.rb', line 13 def self.const_missing(name) case name when :JULIA_VERSION Julia.init const_get(name) else super end end |
.handle ⇒ Object
11 12 13 14 15 16 |
# File 'lib/julia/libjulia.rb', line 11 def self.handle # NOTE: Julia.init redefine this method. # See julia/init.rb for the detail. Julia.init handle end |
.load_lib ⇒ Object
5 6 7 8 9 |
# File 'lib/julia/libjulia.rb', line 5 def self.load_lib require 'julia/libjulia/finder' lib_path = Finder.find_libjulia Fiddle::Handle.new(lib_path[0], Fiddle::Handle::RTLD_LAZY | Fiddle::Handle::RTLD_GLOBAL) end |