Class: BlifUtils::Elaborator::ModelDeclaration

Inherits:
Object
  • Object
show all
Defined in:
lib/blifutils/elaborator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, inputs, outputs) ⇒ ModelDeclaration

Returns a new instance of ModelDeclaration.



50
51
52
53
54
# File 'lib/blifutils/elaborator.rb', line 50

def initialize (name, inputs, outputs)
	@name = name
	@inputs = inputs
	@outputs = outputs
end

Instance Attribute Details

#inputsObject (readonly)

String, …


47
48
49
# File 'lib/blifutils/elaborator.rb', line 47

def inputs
  @inputs
end

#nameObject (readonly)

Returns the value of attribute name.



46
47
48
# File 'lib/blifutils/elaborator.rb', line 46

def name
  @name
end

#outputsObject (readonly)

String, …


48
49
50
# File 'lib/blifutils/elaborator.rb', line 48

def outputs
  @outputs
end

Instance Method Details

#to_sObject



56
57
58
59
60
61
# File 'lib/blifutils/elaborator.rb', line 56

def to_s
	str  = "Model \"#{@name}\"\n"
	str += "  Inputs:  #{@inputs.join(', ')}\n"
	str += "  Outputs: #{@outputs.join(', ')}\n"
	return str
end