class Forematter::Commands::List

Public Instance Methods

run() click to toggle source
# File lib/forematter/commands/list.rb, line 12
def run
  puts tags.uniq.compact.map(&:to_s).sort_by(&:downcase).join("\n")
end

Protected Instance Methods

tags() click to toggle source
# File lib/forematter/commands/list.rb, line 18
def tags
  files_with(field).map { |file| file[field].to_ruby }.flatten
end