Class: Expri::Dumper
- Inherits:
-
Object
- Object
- Expri::Dumper
- Defined in:
- lib/expri/dumper.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Dumper
constructor
A new instance of Dumper.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Dumper
3 4 5 |
# File 'lib/expri/dumper.rb', line 3 def initialize(={}) = end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/expri/dumper.rb', line 7 def run str = "" str << header metrics = Metric.list metrics.each do |metric| metric = Metric.new(metric, {}, ) metric.get str << dump_metric(metric) end str << end |