Module: RBzip2::Adapter
Overview
This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License.
Copyright © 2013, Sebastian Staudt
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(mod) ⇒ Object
8 9 10 11 |
# File 'lib/facter/util/rbzip2-0.3.0/lib/rbzip2/adapter.rb', line 8 def self.extended(mod) mod.send :class_variable_set, :@@available, true mod.init if mod.respond_to? :init end |
Instance Method Details
#available? ⇒ Boolean
13 14 15 |
# File 'lib/facter/util/rbzip2-0.3.0/lib/rbzip2/adapter.rb', line 13 def available? class_variable_get :@@available end |