Method: ClassHDL::OpertorChain#initialize

Defined in:
lib/tdl/class_hdl/hdl_redefine_opertor.rb

#initialize(arg, belong_to_module) ⇒ OpertorChain

Returns a new instance of OpertorChain.



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/tdl/class_hdl/hdl_redefine_opertor.rb', line 43

def initialize(arg, belong_to_module)
    @tree = [] #[[inst0,symb0],[inst1,symb1],[other_chain,symb2],[other_chain,symb3]]
               # self <symb0> inst0 <symb1> inst1 <symb2> ( other_chain ) <symb3> ( other_chain )
    if arg 
        @tree << arg 
    end  
    @belong_to_module = belong_to_module
    unless @belong_to_module
        raise TdlError.new("OpertorChain must have belong_to_module")
    end
end