Method: Whatsa::CLI#summarize

Defined in:
lib/whatsa/cli.rb

#summarize(text) ⇒ Object



130
131
132
133
134
135
136
137
# File 'lib/whatsa/cli.rb', line 130

def summarize(text)
  clear_screen
  return full(text) if text.summary == text.full_text
  puts word_wrap(text.summary)
  summary_helpline
  input = gets_command
  input == "more" ? full(text) : input
end