Class: WebTranslateIt::Safe::Gpg
- Defined in:
- lib/web_translate_it/safe/gpg.rb
Instance Attribute Summary
Attributes inherited from Stream
Instance Method Summary collapse
Methods inherited from Pipe
Methods inherited from Stream
Constructor Details
This class inherits a constructor from WebTranslateIt::Safe::Stream
Instance Method Details
#active? ⇒ Boolean
7 8 9 10 11 |
# File 'lib/web_translate_it/safe/gpg.rb', line 7 def active? raise "can't use both gpg password and pubkey" if key && password !!(password || key) end |