Class: OrigenTesters::IGXLBasedTester::Base::Flow::FlowLineAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/origen_testers/igxl_based_tester/base/flow.rb

Instance Method Summary collapse

Constructor Details

#initialize(flow) ⇒ FlowLineAPI

Returns a new instance of FlowLineAPI.



18
19
20
# File 'lib/origen_testers/igxl_based_tester/base/flow.rb', line 18

def initialize(flow)
  @flow = flow
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'lib/origen_testers/igxl_based_tester/base/flow.rb', line 22

def method_missing(method, *args, &block)
  if Base::FlowLine::DEFAULTS.key?(method.to_sym)
    line = @flow.platform::FlowLine.new(method, *args)
    @flow.render(line)
    line
  else
    super
  end
end

Instance Method Details

#respond_to?(method) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/origen_testers/igxl_based_tester/base/flow.rb', line 32

def respond_to?(method)
  !!Base::FlowLine::DEFAULTS.key?(method.to_sym)
end