class SnakeGame::SnakePart

Class representing a single part of snake

Public Class Methods

new(position, image) click to toggle source

attr_accessor :position, :image

Calls superclass method SnakeGame::GameObject::new
# File lib/snake_part.rb, line 9
def initialize(position, image)
  # @position = position
  # @image = image
  super position, image
end