Class: Bio::FlatFileIndex::Indexer::NameSpaces
- Defined in:
- lib/bio/io/flatfile/indexer.rb
Overview
class NameSpace
Instance Method Summary collapse
- #<<(x) ⇒ Object
- #add(x) ⇒ Object
-
#initialize(*arg) ⇒ NameSpaces
constructor
A new instance of NameSpaces.
- #names ⇒ Object
Constructor Details
#initialize(*arg) ⇒ NameSpaces
Returns a new instance of NameSpaces.
26 27 28 29 30 31 |
# File 'lib/bio/io/flatfile/indexer.rb', line 26 def initialize(*arg) super() arg.each do |x| self.store(x.name, x) end end |
Instance Method Details
#<<(x) ⇒ Object
35 36 37 |
# File 'lib/bio/io/flatfile/indexer.rb', line 35 def <<(x) self.store(x.name, x) end |
#add(x) ⇒ Object
38 39 40 |
# File 'lib/bio/io/flatfile/indexer.rb', line 38 def add(x) self.store(x.name, x) end |
#names ⇒ Object
32 33 34 |
# File 'lib/bio/io/flatfile/indexer.rb', line 32 def names self.keys end |