Class: Mnemosyne::Probes::Registration
- Inherits:
-
Object
- Object
- Mnemosyne::Probes::Registration
- Extended by:
- Forwardable
- Defined in:
- lib/mnemosyne/probes.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#require_paths ⇒ Object
readonly
Returns the value of attribute require_paths.
Instance Method Summary collapse
-
#initialize(class_name, require_paths, probe) ⇒ Registration
constructor
A new instance of Registration.
- #installable? ⇒ Boolean
Constructor Details
#initialize(class_name, require_paths, probe) ⇒ Registration
Returns a new instance of Registration.
11 12 13 14 15 |
# File 'lib/mnemosyne/probes.rb', line 11 def initialize(class_name, require_paths, probe) @class_name = class_name @require_paths = Array require_paths @probe = probe end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
9 10 11 |
# File 'lib/mnemosyne/probes.rb', line 9 def class_name @class_name end |
#require_paths ⇒ Object (readonly)
Returns the value of attribute require_paths.
9 10 11 |
# File 'lib/mnemosyne/probes.rb', line 9 def require_paths @require_paths end |
Instance Method Details
#installable? ⇒ Boolean
17 18 19 20 21 |
# File 'lib/mnemosyne/probes.rb', line 17 def installable? return true unless class_name ::Mnemosyne::Probes.class_available? class_name end |