class Symian::TraceCollector
Constants
- ATTRIBUTES
attributes to store
- METHODS
methods to dynamically generate
Public Class Methods
new(backend, opts={})
click to toggle source
# File lib/symian/trace_collector.rb, line 10 def initialize(backend, opts={}) @backend = case backend when :memory MemoryBackend.new when :yaml raise ArgumentError, 'File not specified' unless opts[:file] YAMLBackend.new(opts[:file]) # when :marshal # MarshalBackend.new # when :json # JsonBackend.new else raise ArgumentError, 'Unsupported backend!' end end