Class: Skylight::Probes::ProbeRegistration Private
- Defined in:
- lib/skylight/probes.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
- #const_name ⇒ Object readonly private
- #name ⇒ Object readonly private
- #probe ⇒ Object readonly private
- #require_paths ⇒ Object readonly private
Instance Method Summary collapse
- #constant_available? ⇒ Boolean private
-
#initialize(name, const_name, require_paths, probe) ⇒ ProbeRegistration
constructor
private
A new instance of ProbeRegistration.
- #install ⇒ Object private
Constructor Details
#initialize(name, const_name, require_paths, probe) ⇒ ProbeRegistration
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 ProbeRegistration.
10 11 12 13 14 15 |
# File 'lib/skylight/probes.rb', line 10 def initialize(name, const_name, require_paths, probe) @name = name @const_name = const_name @require_paths = Array(require_paths) @probe = probe end |
Instance Attribute Details
#const_name ⇒ Object (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.
8 9 10 |
# File 'lib/skylight/probes.rb', line 8 def const_name @const_name end |
#name ⇒ Object (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.
8 9 10 |
# File 'lib/skylight/probes.rb', line 8 def name @name end |
#probe ⇒ Object (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.
8 9 10 |
# File 'lib/skylight/probes.rb', line 8 def probe @probe end |
#require_paths ⇒ Object (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.
8 9 10 |
# File 'lib/skylight/probes.rb', line 8 def require_paths @require_paths end |
Instance Method Details
#constant_available? ⇒ Boolean
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.
23 24 25 |
# File 'lib/skylight/probes.rb', line 23 def constant_available? Skylight::Probes.constant_available?(const_name) end |
#install ⇒ Object
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.
17 18 19 20 21 |
# File 'lib/skylight/probes.rb', line 17 def install probe.install rescue StandardError, LoadError => e log_install_exception(e) end |