Class: OpenPGP::Engine
- Inherits:
-
Object
- Object
- OpenPGP::Engine
- Defined in:
- lib/openpgp/engine.rb,
lib/openpgp/engine/gnupg.rb,
lib/openpgp/engine/openssl.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.available? ⇒ Boolean
6 7 8 9 10 11 12 13 |
# File 'lib/openpgp/engine.rb', line 6 def self.available? begin load!(true) return true rescue LoadError => e return false end end |
.install! ⇒ Object
19 20 21 |
# File 'lib/openpgp/engine.rb', line 19 def self.install! load! end |
.load!(reload = false) ⇒ Object
15 16 17 |
# File 'lib/openpgp/engine.rb', line 15 def self.load!(reload = false) raise LoadError end |
.use(&block) ⇒ Object
23 24 25 26 |
# File 'lib/openpgp/engine.rb', line 23 def self.use(&block) load! block.call(self) end |