mirror of
https://github.com/safiire/n65.git
synced 2024-12-13 06:29:16 +00:00
Trying to re-organize my classes, and add a base class for objects which can emit_bytes to the ROM
This commit is contained in:
parent
3dc1c22aae
commit
8f01494fbb
14
lib/emits_bytes.rb
Normal file
14
lib/emits_bytes.rb
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
module Assembler6502
|
||||
|
||||
####
|
||||
## This is a base class for anything which can emit bytes
|
||||
class EmitsBytes
|
||||
|
||||
def emit_bytes
|
||||
fail(NotImplementedError, "#{self.class} must implement emit_bytes")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user