Class: Doomfire::Terminal

Inherits:
Base
  • Object
show all
Defined in:
lib/doomfire/terminal.rb

Overview

This class outputs the pixels into the terminal, using ANSI color codes

Direct Known Subclasses

Spinner

Constant Summary

Constants inherited from Base

Base::RGB

Instance Attribute Summary

Attributes inherited from Base

#exit_requested, #fire_width, #pixels

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Doomfire::Base

Instance Method Details

#runObject



8
9
10
# File 'lib/doomfire/terminal.rb', line 8

def run
  fire_loop
end

#stopObject



12
13
14
# File 'lib/doomfire/terminal.rb', line 12

def stop
  @exit_requested = true
end