Class: NogizakaBlog::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/nogizaka_blog/cli.rb

Constant Summary collapse

GLYPHS =
%w(| / - \\ | / - \\)

Instance Method Summary collapse

Instance Method Details

#when(yearmonth) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/nogizaka_blog/cli.rb', line 11

def when(yearmonth)
  @nogi = Amazing.new(yearmonth)
  print_header
  spinner
  case options[:sort]
  when 'comment' then sort_by_comment
  when 'article' then sort_by_article
  else normal
  end
end