Sha256: ad787149e3c118ae0ef1d2fa6d8677aeb491e952f115068398d3c818a2f2789f
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
require 'markdo/commands/command' module Markdo class QueryCommand < Command def run(string) regexp = Regexp.new(string, Regexp::IGNORECASE) tasks = task_collection.with_match(regexp).reject(&:complete?) tasks.each do |task| @stdout.puts(task.line) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
markdo-0.2.0 | lib/markdo/commands/query_command.rb |