Sha256: 5635ba46f95f4e7dbca928d2ec0b63d09fff525c1b17646ea63f809dd3b0ba09

Contents?: true

Size: 597 Bytes

Versions: 4

Compression:

Stored size: 597 Bytes

Contents

require 'tamashii/agent/device/lcd/base'

module Tamashii
  module Agent
    module Device
      module Lcd
        class Dummy < Base
          def line_count
            2
          end

          def width
            16
          end

          def print_line(message, line)
            message = '' unless message
            message = message.ljust(width, ' ')
            message.split('').take(width).join('')
            logger.debug "Line #{line}: #{message}"
          end

          def shutdown
            logger.debug "Stopped"
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tamashii-agent-0.4.0 lib/tamashii/agent/device/lcd/dummy.rb
tamashii-agent-0.3.4 lib/tamashii/agent/device/lcd/dummy.rb
tamashii-agent-0.3.3 lib/tamashii/agent/device/lcd/dummy.rb
tamashii-agent-0.3.1 lib/tamashii/agent/device/lcd/dummy.rb