Sha256: 70ee46e96dba1e47c53e91ef55c69e49d00b5c317278721ba927b9f33548057f
Contents?: true
Size: 683 Bytes
Versions: 4
Compression:
Stored size: 683 Bytes
Contents
require 'tamashii/agent/device/device_base' module Tamashii module Agent module Device module Lcd class Base < DeviceBase # default implementation def print_message(message) lines = message.lines.map{|l| l.delete("\n")} line_count.times.each { |line| print_line(lines[line], line) } end def line_count raise NotImplementedError, "line_count" end def width raise NotImplementedError, "width" end def print_line(message, line) raise NotImplementedError, "print_line" end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems