Sha256: bed5a95d6e2174e96563da1d93c5f3af31e8b8140d85357df28aaa21ebf572f6

Contents?: true

Size: 889 Bytes

Versions: 106

Compression:

Stored size: 889 Bytes

Contents

module OrigenTesters
  class IGXLBasedTester
    class Parser
      class DCSpec
        attr_accessor :parser
        attr_accessor :name, :categories
        alias_method :symbol, :name

        def initialize(name, categories, options = {})
          @parser = options[:parser]
          @name = name
          @categories = categories
          @values = {}
        end

        def add_values(components)
          @categories.each_with_index do |category, i|
            @values[category] ||= {}
            @values[category]['Typ'] ||= components[5 + (i * 3) + 0]
            @values[category]['Min'] ||= components[5 + (i * 3) + 1]
            @values[category]['Max'] ||= components[5 + (i * 3) + 2]
          end
        end

        def lookup(category, selector)
          if v == @values[category]
            v[selector]
          end
        end
      end
    end
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
origen_testers-0.9.5 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.9.4 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.9.3 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.9.2 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.9.1 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.9.0 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.13 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.11 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.8 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.7 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.6 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.5 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.4 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.3 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.2 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.1 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.0 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.8.0.pre1 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.7.13 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb
origen_testers-0.7.12 lib/origen_testers/igxl_based_tester/parser/dc_spec.rb