class BlifUtils::AST::ModelReference

Attributes

formalAcutalList[R]
modelName[R]

Public Class Methods

new(modelName, formalAcutalList) click to toggle source
# File lib/blifutils/ast.rb, line 149
def initialize (modelName, formalAcutalList)
        @modelName = modelName
        @formalAcutalList = formalAcutalList
end

Public Instance Methods

pretty_print(indent) click to toggle source
# File lib/blifutils/ast.rb, line 154
def pretty_print (indent)
        str  = '    '*indent + "Model reference:\n"
        str += '    '*(indent+1) + "Model name: \"#{@modelName}\"\n"
        str += '    '*(indent+1) + "Formal / Actual mapping:\n"
        @formalAcutalList.each do |form_act|
                str += '    '*(indent+2) + "\"#{form_act[0]}\" -> \"#{form_act[1]}\"\n"
        end
        return str
end