Class: Atatus::Spies::Registration Private

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/atatus/spies.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(const_name, require_paths, spy) ⇒ Registration

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Registration.



29
30
31
32
33
# File 'lib/atatus/spies.rb', line 29

def initialize(const_name, require_paths, spy)
  @const_name = const_name
  @require_paths = Array(require_paths)
  @spy = spy
end

Instance Attribute Details

#const_nameObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
# File 'lib/atatus/spies.rb', line 35

def const_name
  @const_name
end

#require_pathsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
# File 'lib/atatus/spies.rb', line 35

def require_paths
  @require_paths
end