Skip to content

Commit

Permalink
updates pets exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianZanti committed Jul 16, 2018
1 parent e2a3276 commit 06b527d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions modules/pets/lib/cat.rb
Expand Up @@ -3,20 +3,18 @@ class Cat

def initialize(name)
@name = name
@sound = "Meow"
@toy = "string"
end

def cute?
true
end

def speak
"#{@sound}, my name is #{@name}"
"Meow, my name is #{@name}"
end

def play
"Playing with #{@toy}"
"Playing with string"
end

end
6 changes: 2 additions & 4 deletions modules/pets/lib/dog.rb
Expand Up @@ -4,20 +4,18 @@ class Dog
def initialize(name)
@name = name
@tricks = []
@sound = "Woof"
@toy = "ball"
end

def cute?
true
end

def speak
"#{@sound}, my name is #{@name}"
"Woof, my name is #{@name}"
end

def play
"Playing with #{@toy}"
"Playing with ball"
end

def learn_trick(trick)
Expand Down

0 comments on commit 06b527d

Please sign in to comment.