Class: Bio::FlatFileIndex::Indexer::NameSpaces

Inherits:
Hash
  • Object
show all
Defined in:
lib/bio/io/flatfile/indexer.rb

Overview

class NameSpace

Instance Method Summary collapse

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

#namesObject



32
33
34
# File 'lib/bio/io/flatfile/indexer.rb', line 32

def names
  self.keys
end