class Calypso::IParser

Parser interface.

Attributes

hardware[R]

@return [Hash] Hash of available hardware.

tests[R]

@return [Hash] Hash of unit tests.

Public Class Methods

new(file) click to toggle source

Create a new Parser.

@param file [String] Path to the configuration file.

# File lib/calypso/iparser.rb, line 31
def initialize(file)
  @tests = {}
  @hardware = {}
  @file = file
end

Public Instance Methods

parse() click to toggle source

Cruch data.

@return [nil]

# File lib/calypso/iparser.rb, line 40
def parse
end

Protected Instance Methods

set_hardware(hw) click to toggle source

Set the hardware hash.

@param hw [Hash] Hash of available hardware. @return [nil]

# File lib/calypso/iparser.rb, line 48
def set_hardware(hw)
  @hardware = hw
end
set_tests(tests) click to toggle source

Set the tests hash.

@param tests [Hash] Hash of available tests. @return [nil]

# File lib/calypso/iparser.rb, line 56
def set_tests(tests)
  @tests = tests
end