Class: ADNCV::Display
- Inherits:
-
Object
- Object
- ADNCV::Display
- Defined in:
- lib/ADNCV/display.rb
Instance Method Summary collapse
- #analyzing ⇒ Object
- #done ⇒ Object
- #exported(filename) ⇒ Object
-
#initialize ⇒ Display
constructor
A new instance of Display.
- #version ⇒ Object
Constructor Details
#initialize ⇒ Display
Returns a new instance of Display.
5 6 7 |
# File 'lib/ADNCV/display.rb', line 5 def initialize @thor = Thor::Shell::Color.new end |
Instance Method Details
#analyzing ⇒ Object
13 14 15 |
# File 'lib/ADNCV/display.rb', line 13 def analyzing @thor.say_status :working, "Analyzing JSON file", :yellow end |
#done ⇒ Object
17 18 19 |
# File 'lib/ADNCV/display.rb', line 17 def done @thor.say_status :done, "Parsed and sorted", :green end |
#exported(filename) ⇒ Object
21 22 23 |
# File 'lib/ADNCV/display.rb', line 21 def exported(filename) @thor.say_status :done, "Data exported in #{filename}", :green end |
#version ⇒ Object
9 10 11 |
# File 'lib/ADNCV/display.rb', line 9 def version @thor.say_status :version, "#{VERSION}", :red end |