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.
37 38 39 40 |
# File 'lib/qa/authorities/local/registry.rb', line 37 def initialize(, class_name) @subauthority = @class_name = class_name end |
Instance Method Details
#instance ⇒ Object
46 47 48 |
# File 'lib/qa/authorities/local/registry.rb', line 46 def instance klass.new(@subauthority) end |
#klass ⇒ Object
42 43 44 |
# File 'lib/qa/authorities/local/registry.rb', line 42 def klass @class_name.constantize end |