Class: ODDB::Export::Yaml::Patinfos
- Defined in:
- lib/oddb/export/yaml.rb
Instance Method Summary collapse
Methods inherited from Infos
Instance Method Details
#identify_name(seq, lang) ⇒ Object
195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/oddb/export/yaml.rb', line 195 def identify_name seq, lang names = seq.packages.collect do |pac| u pac.cascading_name(lang) end.uniq if names.size == 1 return names.first end name = '' pos = 0 while(chars = names.collect do |nm| nm[pos,1] end.uniq; chars.size == 1) do pos += 1 name << chars.first end name.gsub! /\([^\)]+$/u, '' name.strip end |
#infotype ⇒ Object
192 193 194 |
# File 'lib/oddb/export/yaml.rb', line 192 def infotype :patinfo end |