Class: WorkMd::Commands::Tyesterday
- Inherits:
-
Object
- Object
- WorkMd::Commands::Tyesterday
- Defined in:
- lib/work_md/commands/tyesterday.rb
Class Method Summary collapse
Class Method Details
.execute(_argv = []) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/work_md/commands/tyesterday.rb', line 7 def execute(_argv = []) file_names = [DateTime.now, Date.today.prev_day].map do |date| WorkMd::File.create_if_not_exist(date) end WorkMd::File.open_in_editor(file_names) end |