Lesson 13


#1

In spite of the fact that I have created module the Editor is giving following remark which I do'nt understand.
Oops, try again. Did you create a module called MartialArts?


#2

Hi can you post your code ?


#3

Create your module here!

module MartialArts
def swordsman
puts"I'm a swordsman."
end
end
class Ninja
include MartialArts
def initialize(clan)
@clan = clan
end
end

class Samurai
include MartialArts
def initialize(shogun)
@shogun = shogun
end
end


#4

I'm guessing you figure it out by now. If not, everything looks just about correct, but you simply have a grammatical error. Look carefully at your module:

module MartialArts
def swordsman
puts"I'm a swordsman."
end
end