Module: RBzip2

Defined in:
lib/rbzip2.rb,
lib/rbzip2/version.rb

Overview

This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License.

Copyright © 2011-2017, Sebastian Staudt

Defined Under Namespace

Modules: Adapter, FFI, Java, Ruby Classes: IO

Constant Summary collapse

VERSION =
'0.3.0'

Class Method Summary collapse

Class Method Details

.default_adapterObject



15
16
17
18
19
# File 'lib/rbzip2.rb', line 15

def self.default_adapter
  return FFI if FFI.available?
  return Java if Java.available?
  Ruby
end