Class: ProgressMonitor::Display::InputLoop
- Inherits:
-
Object
- Object
- ProgressMonitor::Display::InputLoop
- Defined in:
- lib/progress_monitor/display/input_loop.rb
Instance Attribute Summary collapse
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Instance Method Summary collapse
-
#initialize(queue) ⇒ InputLoop
constructor
A new instance of InputLoop.
- #perform ⇒ Object
Constructor Details
#initialize(queue) ⇒ InputLoop
Returns a new instance of InputLoop.
6 7 8 9 |
# File 'lib/progress_monitor/display/input_loop.rb', line 6 def initialize(queue) @queue = queue @status = :normal end |
Instance Attribute Details
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
4 5 6 |
# File 'lib/progress_monitor/display/input_loop.rb', line 4 def queue @queue end |
Instance Method Details
#perform ⇒ Object
11 12 13 |
# File 'lib/progress_monitor/display/input_loop.rb', line 11 def perform loop { get_key } end |