Class: Markdo::OverdueCommand
- Defined in:
- lib/markdo/overdue_command.rb
Overview
TODO: More testing of this logic. As of 2016-01-23, I was building this project as a proof of concept.
Instance Method Summary collapse
-
#initialize ⇒ OverdueCommand
constructor
A new instance of OverdueCommand.
- #run ⇒ Object
Constructor Details
#initialize ⇒ OverdueCommand
Returns a new instance of OverdueCommand.
8 9 10 11 |
# File 'lib/markdo/overdue_command.rb', line 8 def initialize(*) @date = Date.today super end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/markdo/overdue_command.rb', line 13 def run query_command = QueryCommand.new(@stdout, @stderr, @env) all_queries.each do |query| query_command.run(query) end end |