Class: RobotLab::HookRegistry::Registration
- Inherits:
-
Data
- Object
- Data
- RobotLab::HookRegistry::Registration
- Defined in:
- lib/robot_lab/hook_registry.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#handler_class ⇒ Object
readonly
Returns the value of attribute handler_class.
Instance Method Summary collapse
-
#initialize(handler_class:, context: nil) ⇒ Registration
constructor
A new instance of Registration.
- #namespace ⇒ Object
Constructor Details
#initialize(handler_class:, context: nil) ⇒ Registration
Returns a new instance of Registration.
6 7 8 |
# File 'lib/robot_lab/hook_registry.rb', line 6 def initialize(handler_class:, context: nil) super end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context
5 6 7 |
# File 'lib/robot_lab/hook_registry.rb', line 5 def context @context end |
#handler_class ⇒ Object (readonly)
Returns the value of attribute handler_class
5 6 7 |
# File 'lib/robot_lab/hook_registry.rb', line 5 def handler_class @handler_class end |
Instance Method Details
#namespace ⇒ Object
10 11 12 |
# File 'lib/robot_lab/hook_registry.rb', line 10 def namespace handler_class.namespace end |