Module: LyberCore::Robot::ClassMethods
- Defined in:
- lib/lyber_core/robot.rb
Instance Method Summary collapse
-
#perform(druid) ⇒ Object
Called by job-manager on derived-class Instantiate the Robot and call #work with the passed in druid.
Instance Method Details
#perform(druid) ⇒ Object
Called by job-manager on derived-class Instantiate the Robot and call #work with the passed in druid
16 17 18 19 20 21 |
# File 'lib/lyber_core/robot.rb', line 16 def perform(druid) # Get the name of the derived-class that was invoked klazz = self.name.split('::').inject(Object) {|o,c| o.const_get c} bot = klazz.new bot.work druid end |