Class: BlifUtils::Elaborator::ModelDeclaration
- Inherits:
-
Object
- Object
- BlifUtils::Elaborator::ModelDeclaration
- Defined in:
- lib/blifutils/elaborator.rb
Instance Attribute Summary collapse
-
#inputs ⇒ Object
readonly
[String, … ].
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#outputs ⇒ Object
readonly
[String, … ].
Instance Method Summary collapse
-
#initialize(name, inputs, outputs) ⇒ ModelDeclaration
constructor
A new instance of ModelDeclaration.
- #to_s ⇒ Object
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
#inputs ⇒ Object (readonly)
- String, …
47 48 49 |
# File 'lib/blifutils/elaborator.rb', line 47 def inputs @inputs end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
46 47 48 |
# File 'lib/blifutils/elaborator.rb', line 46 def name @name end |
#outputs ⇒ Object (readonly)
- String, …
48 49 50 |
# File 'lib/blifutils/elaborator.rb', line 48 def outputs @outputs end |
Instance Method Details
#to_s ⇒ Object
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 |