Class: Pong::Paddle
- Inherits:
-
Arcade::GameObject
- Object
- Arcade::GameObject
- Pong::Paddle
- Defined in:
- lib/ruby-pong.rb
Instance Method Summary collapse
Instance Method Details
#score! ⇒ Object
13 14 15 16 17 |
# File 'lib/ruby-pong.rb', line 13 def score! set_score(self.score + 1).tap do |score| puts "%s scored! It now has %d points." % [self.name, score] end end |