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