module Hydra::Trace::ClassMethods

Attributes

_traceable_prefix[RW]

Public Instance Methods

traceable(prefix = self.class.to_s) click to toggle source

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

# 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