OleStan/RubyHW

HW2 Case split

Opened this issue · 0 comments

def random_event(pet, timer, action, situation)

Такого рода вещи лучше раскидывать на методы

case action
    when 'walking'
      do_something
    when 'power_up'
      do_something_else