Module: Hydra::Trace::ClassMethods

Defined in:
lib/hydra/trace.rb

Instance Method Summary collapse

Instance Method Details

#traceable(prefix = self.class.to_s) ⇒ Object

Make a class traceable. Takes one parameter, which is the prefix for the trace to identify this class


7
8
9
10
11
12
# File 'lib/hydra/trace.rb', line 7

def traceable(prefix = self.class.to_s)
  include Hydra::Trace::InstanceMethods
  class << self; attr_accessor :_traceable_prefix; end
  self._traceable_prefix = prefix
  $stdout.sync = true
end