Class: PackClassVars

Inherits:
Object
  • Object
show all
Defined in:
lib/tdl/exlib/element_class_vars.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePackClassVars

Returns a new instance of PackClassVars.



89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/tdl/exlib/element_class_vars.rb', line 89

def initialize
    @@nams_list.each do |n|
        self.method("#{n}=").call(ElementClassVars.new(n))
    end

    @module_stack ||= []
    @before_dynamict_inst ||= []
    @after_dynamict_inst ||= []
    @special_stack ||= Hash.new
    @tdl_msgs_stack ||=[]

end

Instance Attribute Details

#after_dynamict_instObject

Returns the value of attribute after_dynamict_inst.



81
82
83
# File 'lib/tdl/exlib/element_class_vars.rb', line 81

def after_dynamict_inst
  @after_dynamict_inst
end

#before_dynamict_instObject

Returns the value of attribute before_dynamict_inst.



81
82
83
# File 'lib/tdl/exlib/element_class_vars.rb', line 81

def before_dynamict_inst
  @before_dynamict_inst
end

#module_stackObject

Returns the value of attribute module_stack.



81
82
83
# File 'lib/tdl/exlib/element_class_vars.rb', line 81

def module_stack
  @module_stack
end

#special_stackObject

Returns the value of attribute special_stack.



81
82
83
# File 'lib/tdl/exlib/element_class_vars.rb', line 81

def special_stack
  @special_stack
end

#tdl_msgs_stackObject

Returns the value of attribute tdl_msgs_stack.



81
82
83
# File 'lib/tdl/exlib/element_class_vars.rb', line 81

def tdl_msgs_stack
  @tdl_msgs_stack
end

Class Method Details

.require_elementObject



83
84
85
86
87
# File 'lib/tdl/exlib/element_class_vars.rb', line 83

def self.require_element
    @@nams_list = [Parameter] | SignalElm.subclass | InfElm.subclass

    attr_accessor(*@@nams_list.map { |e| e.to_s })
end