class SnakeGame::Bait
Class representing bait (snake food)
Attributes
size[RW]
Public Class Methods
new(position, image)
click to toggle source
Calls superclass method
# File lib/bait.rb, line 8 def initialize(position, image) @size = 1 super position, image end