Class: BlifUtils::AST::ModelHeaderElementClock

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clockListObject (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