Ruby Ruby Blocks Blocks Practice Create a Class

Can anybody tell me what I am doing wrong here?


class Monster
  def initialize (name, action)
    @name = name
    @action = {}

2 Answers

The question is,what are you trying to do?)

In the initialize method of the Monster class, create an instance variable called @actions that is set to an empty hash.

so,just rename your variable @action to @actions :)

oopsie ;)