Method: Bio::FlatFile::AutoDetect#add
- Defined in:
- lib/bio/io/flatfile/autodetection.rb
#add(elem) ⇒ Object
Adds a new element. Returns elem.
237 238 239 240 241 242 |
# File 'lib/bio/io/flatfile/autodetection.rb', line 237 def add(elem) raise 'element name conflicts' if @rules[elem.name] @elements = nil @rules[elem.name] = elem elem end |