Module: RightScale::Actor
- Included in:
- AgentManager
- Defined in:
- lib/right_agent/actor.rb
Overview
This mixin provides agent actor functionality.
To use it simply include it your class containing the functionality to be exposed:
class Foo
include RightScale::Actor
expose :bar
def (payload)
# ...
end
end
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Callback invoked whenever Actor is included in another module or class.
Class Method Details
.included(base) ⇒ Object
Callback invoked whenever Actor is included in another module or class.
Parameters
- base(Module)
-
Module that included Actor module
Return
- true
-
Always return true
47 48 49 50 |
# File 'lib/right_agent/actor.rb', line 47 def self.included(base) base.send :include, InstanceMethods base.extend(ClassMethods) end |