Method: Statsample::Analysis.run
- Defined in:
- lib/statsample/analysis.rb
.run(*args) ⇒ Object
Run analysis *args Without arguments, run all stored analysis Only ‘echo’ will be returned to screen
53 54 55 56 57 58 59 |
# File 'lib/statsample/analysis.rb', line 53 def self.run(*args) args=stored_analysis.keys if args.size==0 raise "Analysis #{args} doesn't exists" if (args - stored_analysis.keys).size>0 args.each do |name| stored_analysis[name].run end end |