Module: Thespian::ClassMethods

Defined in:
lib/thespian.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#actor(options = nil, &block) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/thespian.rb', line 35

def actor(options = nil, &block)
  @actor ||= Dsl.new
  @actor.options = options if options
  if block_given?
    @actor.receive(&block)
  else
    @actor
  end
end