Sha256: 967bbc94005987ce2622ae5df61bbd65b39f49729bf4e4c416f34fccb749349e
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
module MonomeSerial module SerialCommunicator class Communicator def write(strings) raise ArgumentError, "The collection of stringified bytes passed into SerialCommunicator#write needs to respond to #[] and #size" unless strings.respond_to?("[]") && strings.respond_to?("size") end def read end def real? raise "please implement me" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
monome_serial-1.1.0 | lib/monome_serial/serial_communicator/communicator.rb |
monome_serial-1.0.0 | lib/monome_serial/serial_communicator/communicator.rb |