Method: EnergyPlus::IdfText#findObjectByComment
- Defined in:
- lib/energyplus/IdfText.rb
#findObjectByComment(comment) ⇒ Object
60 61 62 63 64 65 66 67 68 |
# File 'lib/energyplus/IdfText.rb', line 60 def findObjectByComment(comment) comment = Regexp.new(comment) objects().each do |object| if object.comment =~ comment return object end end return nil end |