Class: Mnemosyne::Probes::Registration

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/mnemosyne/probes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns:

  • (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