We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 865eee6 commit 02d0f1fCopy full SHA for 02d0f1f
lib/ruby_snake/entity.rb
@@ -0,0 +1,13 @@
1
+# frozen_string_literal: true
2
+
3
+module RubySnake
4
+ module Entity
5
+ def update(_dt, _key)
6
+ raise NotImplementedError, "#{self.class} should implement `#update(dt, key)`"
7
+ end
8
9
+ def draw(_canvas)
10
+ raise NotImplementedError, "#{self.class} should implement `#draw(canvas)`"
11
12
13
+end
0 commit comments