Module: TurboTest::ConstantTracer::Klass::InstanceMethods

Included in:
Regexp
Defined in:
lib/turbo_test_constant_tracer/klass.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#turbo_test_nameObject

Returns the value of attribute turbo_test_name.



44
45
46
# File 'lib/turbo_test_constant_tracer/klass.rb', line 44

def turbo_test_name
  @turbo_test_name
end

#turbo_test_pathObject

Returns the value of attribute turbo_test_path.



44
45
46
# File 'lib/turbo_test_constant_tracer/klass.rb', line 44

def turbo_test_path
  @turbo_test_path
end

Instance Method Details

#__getobj__Object



51
52
53
54
55
56
57
# File 'lib/turbo_test_constant_tracer/klass.rb', line 51

def __getobj__
  result = super
  TurboTest::ConstantTracer::EventPublisher.publish(
    turbo_test_name, turbo_test_path
  )
  result
end

#initialize(object) ⇒ Object



46
47
48
49
# File 'lib/turbo_test_constant_tracer/klass.rb', line 46

def initialize(object)
  super
  check_object_type!(object)
end

#turbo_test_proxied_classObject Also known as: __turbo_test_proxy_object



59
60
61
# File 'lib/turbo_test_constant_tracer/klass.rb', line 59

def turbo_test_proxied_class
  __getobj__
end