Sha256: 63d07789fd52868f84ec964f19c0cfa60a9c0fa323e2d29a1dd74fa198ebbf11
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
module Himekaminize class TaskList include ::Himekaminize::Filterable class << self # @return [Array<Himekaminize::Filters::BaseFilter>] def filter_classes @filter_classes ||= [ ::Himekaminize::Filters::TaskFilter ] end end def to_task_list array = to_a array.select { |line| line.is_a?(Himekaminize::Task) } end def to_s array = to_a seq = 0 array.map do |line| if line.is_a?(Himekaminize::Task) Himekaminize::Task.new(line, seq) else line end end .join("\n\r") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
himekaminize-0.0.2 | lib/himekaminize/task_list.rb |