Sha256: 38e908b157679257e57ebd3cff78dc3c0057c0ef0c62f254f25461e59e72bd8b

Contents?: true

Size: 306 Bytes

Versions: 3

Compression:

Stored size: 306 Bytes

Contents

# stdlib
require "fiddle/import"

# modules
require_relative "scs/matrix"
require_relative "scs/solver"
require_relative "scs/version"

module SCS
  class Error < StandardError; end

  def self.lib_version
    FFI::Direct.scs_version.to_s
  end

  # friendlier error message
  autoload :FFI, "scs/ffi"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scs-0.5.0 lib/scs.rb
scs-0.4.3 lib/scs.rb
scs-0.4.2 lib/scs.rb