module Playable
Public Instance Methods
heal()
click to toggle source
# File lib/studio_game/playable.rb, line 8 def heal @health += 15 puts "#{@name} got healed!" end
slash()
click to toggle source
# File lib/studio_game/playable.rb, line 3 def slash @health -= 10 puts "#{@name} got slashed!" end
strong?()
click to toggle source
# File lib/studio_game/playable.rb, line 13 def strong? @health > 100 end