Method: ZergXcode::Plugins::Ls#run
- Defined in:
- lib/zerg_xcode/plugins/ls.rb
#run(args) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/zerg_xcode/plugins/ls.rb', line 12 def run(args) list = list_for(args.shift || '.') output = "" list.each do |entry| output << "%-20s %s\n" % [entry.last, entry.first] end print output output end |