class Work::Md::Commands::Tyesterday
Public Class Methods
execute(_argv = [])
click to toggle source
# File lib/work/md/commands/tyesterday.rb, line 8 def execute(_argv = []) file_names = [DateTime.now, Date.today.prev_day].map do |date| Work::Md::DateFile.create_if_not_exist(date) end Work::Md::File.open_in_editor(file_names) end