class PackerFiles::Core::Keyboard

Define the Keyboard class that can handle Keyboards specified in a Packerfile. Just the barebones attributes that are required for this class are specified here. The conversion of these attributes into a OS build specific file is done by derived classes in the OS specific directories.

Attributes

layout[RW]

Specify attributes

variant[RW]

Public Class Methods

doc_file() click to toggle source

Documentation for this class

# File lib/PackerFiles/Core/Keyboard.rb, line 20
def self.doc_file
   PackerFiles.DirPath('Core/example/Keyboard.txt').first
end
new() { |self| ... } click to toggle source

Constructor to just specify accessor varibales

# File lib/PackerFiles/Core/Keyboard.rb, line 25
def initialize
   yield self if block_given?
end

Public Instance Methods

normalize() click to toggle source

Normalize the various values into something useful. The default implementation checks only errors

# File lib/PackerFiles/Core/Keyboard.rb, line 31
def normalize
 raise NilException.new(self, 'layout') if @layout.nil?
end