Class: MonkeyAction
Overview
MonkeyAction.
Direct Known Subclasses
MonkeyActionDead, MonkeyActionType, MonkeyActionWake, MonkeyTimedAction
Instance Attribute Summary collapse
-
#monkey ⇒ Object
readonly
Returns the value of attribute monkey.
Attributes inherited from Action
#action_completed, #action_time, #value, #weight
Instance Method Summary collapse
-
#initialize(monkey, value, weight) ⇒ MonkeyAction
constructor
A new instance of MonkeyAction.
Methods inherited from Action
Constructor Details
#initialize(monkey, value, weight) ⇒ MonkeyAction
Returns a new instance of MonkeyAction.
9 10 11 12 13 |
# File 'lib/MonkeyAction/monkey_action.rb', line 9 def initialize(monkey, value, weight) super(value, weight) @monkey = monkey end |
Instance Attribute Details
#monkey ⇒ Object (readonly)
Returns the value of attribute monkey.
7 8 9 |
# File 'lib/MonkeyAction/monkey_action.rb', line 7 def monkey @monkey end |