Class: Lazylead::Task::EchoIO
- Inherits:
-
Object
- Object
- Lazylead::Task::EchoIO
- Defined in:
- lib/lazylead/task/echo.rb
Overview
Lazylead task which prints the current time to a file.
- Author
-
Yurii Dubinka ([email protected])
- Copyright
-
Copyright © 2019-2020 Yurii Dubinka
- License
-
MIT
Instance Method Summary collapse
-
#initialize(log = Log.new, path = "test/resources/echo.txt") ⇒ EchoIO
constructor
A new instance of EchoIO.
- #run(_, _, _) ⇒ Object
Constructor Details
Instance Method Details
#run(_, _, _) ⇒ Object
55 56 57 |
# File 'lib/lazylead/task/echo.rb', line 55 def run(_, _, _) File.open(@path, "w") { |f| f.write Time.now } end |