Class: MonkeyActionWake
- Inherits:
-
MonkeyAction
- Object
- Action
- MonkeyAction
- MonkeyActionWake
- Defined in:
- lib/MonkeyAction/monkey_action_wake.rb
Overview
Monkey action: wake (as in from sleep) The monkey has awakened from sleep.
Constant Summary collapse
- WEIGHT =
2.0
- VALID_VALUES =
[true].freeze
Instance Attribute Summary
Attributes inherited from MonkeyAction
Attributes inherited from Action
#action_completed, #action_time, #value, #weight
Instance Method Summary collapse
-
#initialize(monkey) ⇒ MonkeyActionWake
constructor
A new instance of MonkeyActionWake.
Methods inherited from Action
Constructor Details
#initialize(monkey) ⇒ MonkeyActionWake
Returns a new instance of MonkeyActionWake.
12 13 14 15 16 |
# File 'lib/MonkeyAction/monkey_action_wake.rb', line 12 def initialize(monkey) super(monkey, true, WEIGHT) validate end |