Method: Action#initialize
- Defined in:
- lib/Action/action.rb
#initialize(value, weight) ⇒ Action
Returns a new instance of Action.
10 11 12 13 14 15 |
# File 'lib/Action/action.rb', line 10 def initialize(value, weight) @value = value @weight = weight @action_time = Time.now @action_completed = false end |