Class: Toga::Commands::List

Inherits:
Toga::Command show all
Defined in:
lib/toga/commands/list.rb

Direct Known Subclasses

Current

Class Method Summary collapse

Methods included from Error

included

Class Method Details

.run!(*args) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/toga/commands/list.rb', line 5

def self.run!(*args)
  out = ""
  
  group_names = args.first.empty? ? [:current, :later] : args.first
  group_names.each_with_index do |n, i|
    out << Togafile.lines_in_group(n).join("\n")
    if i < group_names.length-1 then out << ""; end
  end
  
  out
end