summaryrefslogtreecommitdiff
path: root/lib/oxidized/output/output.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/output/output.rb')
-rw-r--r--lib/oxidized/output/output.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/oxidized/output/output.rb b/lib/oxidized/output/output.rb
index eaf149a..1355d03 100644
--- a/lib/oxidized/output/output.rb
+++ b/lib/oxidized/output/output.rb
@@ -1,5 +1,10 @@
module Oxidized
class Output
class NoConfig < OxidizedError; end
+
+ def cfg_to_str cfg
+ cfg.select{ |h| h[:type]=='cfg' }.map{ |h| h[:data] }.join
+ end
+
end
end