Class: Basefile::Exe::Decoder
- Inherits:
-
Object
- Object
- Basefile::Exe::Decoder
- Defined in:
- lib/basefile/exe/decoder.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(enc_str, file) ⇒ Decoder
constructor
A new instance of Decoder.
Constructor Details
#initialize(enc_str, file) ⇒ Decoder
Returns a new instance of Decoder.
4 5 6 7 |
# File 'lib/basefile/exe/decoder.rb', line 4 def initialize(enc_str, file) @enc_str = enc_str @file = file end |
Instance Method Details
#call ⇒ Object
9 10 11 12 13 |
# File 'lib/basefile/exe/decoder.rb', line 9 def call f = ::Basefile::FileHandler.new f.fileout = @file puts f.decode_file(@enc_str) end |