class ASF::ICLAFiles

Common class for access to documents/iclas/ directory

Public Class Methods

match_claRef(claRef) click to toggle source

search icla files to find match with claRef Returns the basename or nil if no match

# File lib/whimsy/asf/icla.rb, line 266
def self.match_claRef(claRef)
  @@ICLAFILES = ASF::SVN['iclas'] unless @@ICLAFILES
  file = Dir[File.join(@@ICLAFILES, claRef), File.join(@@ICLAFILES, "#{claRef}.*")].first
  File.basename(file) if file
end