Method: Quickpress.list_categories

Defined in:
lib/quickpress.rb

.list_categoriesObject

Pretty-prints categories list.



433
434
435
436
437
438
439
440
441
442
# File 'lib/quickpress.rb', line 433

def list_categories
  Quickpress::startup

  # Will show categories in columns of n
  columns = 5
  table = @@wp.categories.each_slice(columns).to_a

  puts
  Thor::Shell::Basic.new.print_table table
end