Sha256: c16f931ceb69c859887d076825b22700fd548d1d2201388e055e580c0c2fb5ae
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 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 unless jars.empty? jars.each { |jar| require jar } else raise LoadError, "No jars found in #{path}" end end end def self.new(*args) Java::SFSObject.new(*args) end def self.from_json(data) Java::SFSObject.new_from_json_data(data) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubyfox-sfsobject-0.2.1-java | lib/rubyfox/sfsobject.rb |
rubyfox-sfsobject-0.2.0-java | lib/rubyfox/sfsobject.rb |