Skip to content

Instantly share code, notes, and snippets.

@kblake
Created October 23, 2009 02:07
Show Gist options
  • Save kblake/216548 to your computer and use it in GitHub Desktop.
Save kblake/216548 to your computer and use it in GitHub Desktop.
#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