Ruby Ruby Blocks Blocks Practice Create a Class

Can anybody tell me what I am doing wrong here?

?

monster.rb
class Monster
  def initialize (name, action)
    @name = name
    @action = {}
  end
end

2 Answers

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

oopsie ;)

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.