Class: WhirledPeas::Device::OutputFile

Inherits:
Object
  • Object
show all
Defined in:
lib/whirled_peas/device/output_file.rb

Instance Method Summary collapse

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