Class: WhirledPeas::Device::OutputFile
- Inherits:
-
Object
- Object
- WhirledPeas::Device::OutputFile
- Defined in:
- lib/whirled_peas/device/output_file.rb
Instance Method Summary collapse
- #handle_rendered_frames(rendered_frames) ⇒ Object
-
#initialize(file) ⇒ OutputFile
constructor
A new instance of OutputFile.
Constructor Details
#initialize(file) ⇒ OutputFile
Returns a new instance of OutputFile.
6 7 8 |
# File 'lib/whirled_peas/device/output_file.rb', line 6 def initialize(file) @file = file end |
Instance Method Details
#handle_rendered_frames(rendered_frames) ⇒ Object
10 11 12 |
# File 'lib/whirled_peas/device/output_file.rb', line 10 def handle_rendered_frames(rendered_frames) Utils::FileHandler.write(file, rendered_frames) end |