class Screenplay::Actor
Attributes
name[R]
Public Class Methods
descendants()
click to toggle source
# File lib/screenplay/actor.rb, line 32 def self.descendants ObjectSpace.each_object(Class).select { | klass | klass < self } end
new(name)
click to toggle source
# File lib/screenplay/actor.rb, line 27 def initialize(name) @name = name.to_sym configure(Configuration[@name] || {}) end
Public Instance Methods
configure(config = {})
click to toggle source
# File lib/screenplay/actor.rb, line 36 def configure(config = {}) # Not needed to override this, but might be useful end
play(params, input)
click to toggle source
# File lib/screenplay/actor.rb, line 40 def play(params, input) raise MethodNotImplemented.new('play') end