Method: Monkey#current_action
- Defined in:
- lib/Monkey/monkey.rb
#current_action ⇒ MonkeyAction
Retrieves the current Action that this Monkey is engaged in.
54 55 56 57 58 |
# File 'lib/Monkey/monkey.rb', line 54 def current_action return MonkeyActionDead.new(self) unless alive? @action end |