Sha256: b989f037943911dfea5eb8bb32f7b41d47764a3d60a17cf68c2b79c5e6322ed0

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 Bytes

Contents

module OrigenTesters
  module IGXLBasedTester
    class Base
      class Edges
        include ::OrigenTesters::Generator

        attr_accessor :edges

        def initialize(options = {}) # :nodoc:
          @edges = Hash.new do |h, k|
            h[k] = {}
          end
        end

        # Defines a new Edge object for the category and pin name
        def add(grp, pin, options = {})
          grp = grp.to_sym unless grp.is_a? Symbol
          pin = pin.to_sym unless pin.is_a? Symbol
          edges[grp][pin] = platform::Edge.new(options)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
origen_testers-0.13.2 lib/origen_testers/igxl_based_tester/base/edges.rb
origen_testers-0.10.0 lib/origen_testers/igxl_based_tester/base/edges.rb