Module: Nanite::Actor

Defined in:
lib/nanite/actor.rb

Overview

This mixin provides Nanite actor functionality.

To use it simply include it your class containing the functionality to be exposed:

class Foo
  include Nanite::Actor
  expose :bar

  def bar(payload)
    # ...
  end

end

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



17
18
19
20
21
22
# File 'lib/nanite/actor.rb', line 17

def self.included(base)
  base.class_eval do 
    include Nanite::Actor::InstanceMethods
    extend  Nanite::Actor::ClassMethods
  end # base.class_eval
end