Sha256: ca9bf715f974ba9e157d1dae6c146a7d7bad36f2affdf23e03cd02d45887de2c

Contents?: true

Size: 874 Bytes

Versions: 36

Compression:

Stored size: 874 Bytes

Contents

module OrigenTesters
  module Decompiler
    class Pattern
      class Base
        attr_reader :context
        alias_method :decompiled_pattern, :context

        attr_reader :node
        alias_method :processor, :node

        def initialize(node:, context:, **options)
          @context = context
          @node = node
        end

        def [](node)
          node.find(node)
        end

        def platform_nodes
          node.platform_nodes
        end

        def method_missing(m, *args, &block)
          if platform_nodes.include?(m) || node.respond_to?(m)
            node.send(m)
          else
            super
          end
        end

        def execute!
          if node.execute?
            node.execute!(self)
          end
        end

        def pinlist
          decompiled_pattern.pinlist.pinlist
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
origen_testers-0.52.8 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.52.7 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.52.6 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.52.5 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.52.4 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.52.3 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.52.1 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.52.0 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.51.5 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.51.4 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.51.3 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.51.2 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.51.1 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.51.0 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.50.0 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.49.4 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.49.3 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.49.2 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.49.1 lib/origen_testers/decompiler/pattern/elements/base.rb
origen_testers-0.49.0 lib/origen_testers/decompiler/pattern/elements/base.rb