Class: Qa::Authorities::Local::Registry::RegistryEntry
- Inherits:
-
Object
- Object
- Qa::Authorities::Local::Registry::RegistryEntry
- Defined in:
- lib/qa/authorities/local/registry.rb
Instance Method Summary collapse
-
#initialize(subauthority, class_name) ⇒ RegistryEntry
constructor
A new instance of RegistryEntry.
- #instance ⇒ Object
- #klass ⇒ Object
Constructor Details
#initialize(subauthority, class_name) ⇒ RegistryEntry
Returns a new instance of RegistryEntry.
35 36 37 38 |
# File 'lib/qa/authorities/local/registry.rb', line 35 def initialize(, class_name) @subauthority = @class_name = class_name end |
Instance Method Details
#instance ⇒ Object
44 45 46 |
# File 'lib/qa/authorities/local/registry.rb', line 44 def instance klass.new(@subauthority) end |
#klass ⇒ Object
40 41 42 |
# File 'lib/qa/authorities/local/registry.rb', line 40 def klass @class_name.constantize end |