Sha256: cdab57eb7a876b07299d7a24a7491b9cbfa1b30741f73613c76d8b6230dbcdef
Contents?: true
Size: 583 Bytes
Versions: 4
Compression:
Stored size: 583 Bytes
Contents
require 'pathname' module Rubyfox module SFSObject def self.boot!(sf_dir) unless $LOAD_PATH.include?(sf_dir) path = Pathname.new(sf_dir).join("*.jar") jars = Dir[path].to_a if jars.any? jars.each { |jar| require jar } else raise LoadError, "No jars found in #{path.inspect}" end end end def self.new(*args) Java::SFSObject.new(*args) end def self.from_json(data) Java::SFSObject.from_json(data) end def self.[](*args) Java::SFSObject[*args] end end end
Version data entries
4 entries across 4 versions & 1 rubygems