Created
October 23, 2009 02:07
-
-
Save kblake/216548 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#todo use select | |
def self.getDnaLab(lab_name) | |
DnaLabs.each do |lab| | |
if lab.name == lab_name | |
return lab | |
end | |
end | |
return nil | |
end | |
#todo: use select | |
def self.getLabDisplayName(labName) | |
for dnaLab in DnaLabs | |
if dnaLab.name == labName | |
return dnaLab.display_name | |
end | |
end | |
return "" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment