Class: Starter
- Inherits:
-
Object
- Object
- Starter
- Defined in:
- lib/artemo.rb
Overview
Note:
This class is helper for ./bin/artemo file
Class Method Summary collapse
Class Method Details
.call(args) ⇒ Object
Note:
This method is helper for ./bin/artemo file
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/artemo.rb', line 40 def self.call(args) if args.empty? puts "artemo [your text file], to plot data to pdf use artemo --plot [your text file]" elsif args.first != '--plot' puts ArtEmo.call(args.last) else to_plot = ArtEmo.call(args.last) Plot.call(args.last, to_plot) end end |