Class AlienConfig
In: alienconfig.rb
Parent: Hash

Alien Ruby RFID Library

alienconfig.rb

  A class to load/save application configuration data in a simple text file.
  Minimal error handling.
  Configuration parameters are maintained as a hash.
  Copyright 2014, Alien Technology Corporation. All rights reserved.

Methods

load   new   save  

Public Class methods

Public Instance methods

      private

Open a file and read out the configuration parameters. Save into a hash structure. Blank lines and comment lines, beginning with ’#’ are ignored.

Save the hash data to a file.

[Validate]