Class: RBGL::GUI::FileBackend::FrameWriter
- Inherits:
-
Object
- Object
- RBGL::GUI::FileBackend::FrameWriter
- Defined in:
- lib/rbgl/gui/file_backend/frame_writer.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build(format, ppm_mode: :ascii) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/rbgl/gui/file_backend/frame_writer.rb', line 7 def self.build(format, ppm_mode: :ascii) case format when :ppm PpmWriter.new(binary: ppm_mode == :binary) when :bmp BmpWriter.new else raise ArgumentError, "Unsupported file backend format: #{format}" end end |
Instance Method Details
#extension ⇒ Object
18 19 20 |
# File 'lib/rbgl/gui/file_backend/frame_writer.rb', line 18 def extension raise NotImplementedError end |
#write(_filename, _framebuffer) ⇒ Object
22 23 24 |
# File 'lib/rbgl/gui/file_backend/frame_writer.rb', line 22 def write(_filename, _framebuffer) raise NotImplementedError end |