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.
29 30 31 32 |
# File 'lib/qa/authorities/local/registry.rb', line 29 def initialize(, class_name) @subauthority = @class_name = class_name end |
Instance Method Details
#instance ⇒ Object
38 39 40 |
# File 'lib/qa/authorities/local/registry.rb', line 38 def instance klass.new(@subauthority) end |
#klass ⇒ Object
34 35 36 |
# File 'lib/qa/authorities/local/registry.rb', line 34 def klass @class_name.constantize end |