Class: Spsleep::Command
- Inherits:
-
Object
- Object
- Spsleep::Command
- Defined in:
- lib/spsleep/command.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Command
constructor
A new instance of Command.
- #run(options) ⇒ Object
Constructor Details
#initialize ⇒ Command
Returns a new instance of Command.
9 10 |
# File 'lib/spsleep/command.rb', line 9 def initialize end |
Class Method Details
.run(options) ⇒ Object
4 5 6 |
# File 'lib/spsleep/command.rb', line 4 def run() new.run() end |
Instance Method Details
#run(options) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/spsleep/command.rb', line 12 def run() sleep_sec = [0] ? [0] : 1 ARGF.each do |line| puts line sleep sleep_sec end end |