Class: Calypso::IParser

Inherits:
Object
  • Object
show all
Defined in:
lib/calypso/iparser.rb

Overview

Parser interface.

Direct Known Subclasses

YAMLParser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ IParser

Create a new Parser.

Parameters:

  • file (String)

    Path to the configuration file.



31
32
33
34
35
# File 'lib/calypso/iparser.rb', line 31

def initialize(file)
  @tests = {}
  @hardware = {}
  @file = file
end

Instance Attribute Details

#hardwareHash (readonly)

Returns Hash of available hardware.

Returns:

  • (Hash)

    Hash of available hardware.



26
27
28
# File 'lib/calypso/iparser.rb', line 26

def hardware
  @hardware
end

#testsHash (readonly)

Returns Hash of unit tests.

Returns:

  • (Hash)

    Hash of unit tests.



24
25
26
# File 'lib/calypso/iparser.rb', line 24

def tests
  @tests
end

Instance Method Details

#parsenil

Cruch data.

Returns:

  • (nil)


40
41
# File 'lib/calypso/iparser.rb', line 40

def parse
end