Class: RobotLab::HookRegistry::Registration

Inherits:
Data
  • Object
show all
Defined in:
lib/robot_lab/hook_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



5
6
7
# File 'lib/robot_lab/hook_registry.rb', line 5

def context
  @context
end

#handler_classObject (readonly)

Returns the value of attribute handler_class

Returns:

  • (Object)

    the current value of handler_class



5
6
7
# File 'lib/robot_lab/hook_registry.rb', line 5

def handler_class
  @handler_class
end

Instance Method Details

#namespaceObject



10
11
12
# File 'lib/robot_lab/hook_registry.rb', line 10

def namespace
  handler_class.namespace
end