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
Instance Method Summary collapse
-
#initialize(monkey, value, weight) ⇒ MonkeyAction
constructor
A new instance of MonkeyAction.
Methods inherited from Action
#action_completed=, #action_completed?
Constructor Details
#initialize(monkey, value, weight) ⇒ MonkeyAction
Returns a new instance of MonkeyAction.
7 8 9 10 11 12 13 |
# File 'lib/MonkeyAction/monkey_action.rb', line 7 def initialize(monkey, value, weight) super value, weight @monkey = monkey self end |
Instance Attribute Details
#monkey ⇒ Object (readonly)
Returns the value of attribute monkey.
5 6 7 |
# File 'lib/MonkeyAction/monkey_action.rb', line 5 def monkey @monkey end |