Method: Bookshelf::Cli#stats

Defined in:
lib/bookshelf/cli.rb

#statsObject



67
68
69
70
71
72
73
74
75
76
# File 'lib/bookshelf/cli.rb', line 67

def stats
  stats = Bookshelf::Stats.new(Bookshelf.root_dir)

  say [
    "Chapters: #{stats.chapters}",
    "Words: #{stats.words}",
    "Images: #{stats.images}",
    "Links: #{stats.links}"
  ].join("\n")
end