Sha256: 3ac63e9e2d2b6ceef1f64d0df92f69775689906f2c92c6246fd462d9c684623e
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
require 'markdo/command_support' require 'markdo/data_source' require 'markdo/models/task_collection' module Markdo class Command def initialize(command_support) @command_support = command_support @stdin = command_support.stdin @stdout = command_support.stdout @stderr = command_support.stderr @env = command_support.env @today = command_support.today end def run end protected def data_source DataSource.new(@env) end def task_collection TaskCollection.new(data_source.lines_from_all, @today) end def inbox_task_collection TaskCollection.new(data_source.lines_from_inbox, @today) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
markdo-0.2.0 | lib/markdo/commands/command.rb |