Class: Qa::Authorities::Local::Registry::RegistryEntry
- Inherits:
-
Object
- Object
- Qa::Authorities::Local::Registry::RegistryEntry
- Defined in:
- lib/qa/authorities/local.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.
72 73 74 |
# File 'lib/qa/authorities/local.rb', line 72 def initialize(, class_name) @subauthority, @class_name = , class_name end |
Instance Method Details
#instance ⇒ Object
80 81 82 |
# File 'lib/qa/authorities/local.rb', line 80 def instance klass.new(@subauthority) end |
#klass ⇒ Object
76 77 78 |
# File 'lib/qa/authorities/local.rb', line 76 def klass @class_name.constantize end |