module Paul
Public Instance Methods
blam()
click to toggle source
# File lib/PAUL/exercise21.rb, line 11 def blam @health -= 10 puts "#{@name} got blammed" end
name()
click to toggle source
# File lib/PAUL/exercise21.rb, line 3 def name "#{@name}" end
score()
click to toggle source
# File lib/PAUL/exercise21.rb, line 7 def score @health + @name.length end
strong?()
click to toggle source
# File lib/PAUL/exercise21.rb, line 21 def strong? @health > 100 end
w00t()
click to toggle source
# File lib/PAUL/exercise21.rb, line 16 def w00t @health += 15 puts "#{@name} got wooted" end