6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/colorful_reading/command.rb', line 6
def self.run
tagger = Tagger.new
ARGF.readlines.each do |text|
text.chomp!
tagged_text = tagger.tagging(text)
if tagged_text
puts Colors.colorize(tagged_text)
else
puts text
end
end
end
|