Class: BlifUtils::AST::ModelHeaderElementClock
- Inherits:
-
Object
- Object
- BlifUtils::AST::ModelHeaderElementClock
- Defined in:
- lib/blifutils/ast.rb
Instance Attribute Summary collapse
-
#clockList ⇒ Object
readonly
Returns the value of attribute clockList.
Instance Method Summary collapse
-
#initialize(clockList) ⇒ ModelHeaderElementClock
constructor
A new instance of ModelHeaderElementClock.
- #pretty_print(indent) ⇒ Object
Constructor Details
#initialize(clockList) ⇒ ModelHeaderElementClock
Returns a new instance of ModelHeaderElementClock.
91 92 93 |
# File 'lib/blifutils/ast.rb', line 91 def initialize (clockList) @clockList = clockList end |
Instance Attribute Details
#clockList ⇒ Object (readonly)
Returns the value of attribute clockList.
89 90 91 |
# File 'lib/blifutils/ast.rb', line 89 def clockList @clockList end |
Instance Method Details
#pretty_print(indent) ⇒ Object
95 96 97 |
# File 'lib/blifutils/ast.rb', line 95 def pretty_print (indent) return ' '*indent + "Clocks: #{@clockList.collect{|str| "\"#{str}\""}.join(', ')}\n" end |