Sha256: 59a50574ecccfbf8cd5c41a6602cd7db3877211c578bb3b57024804919b5261f

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

require 'core/traceable_object'

class TraceableFactory

  def self.createTraceableObject( className, *args )

    TraceableObject.before_init(className) if Rcli.trace_app
    
    obj = Object.const_get( className ).new(*args)
    
    TraceableObject.after_init(className) if Rcli.trace_app

    if Rcli.trace_app
      return TraceableObject.new(obj,*args)
    else
      return obj
    end
  end
    
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rcli-0.1.2 lib/core/traceable_factory.rb
rcli-0.1.0 lib/core/traceable_factory.rb