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

- (NameSpaces) initialize(*arg)

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

- (Object) <<(x)



35
36
37
# File 'lib/bio/io/flatfile/indexer.rb', line 35

def <<(x)
  self.store(x.name, x)
end

- (Object) add(x)



38
39
40
# File 'lib/bio/io/flatfile/indexer.rb', line 38

def add(x)
  self.store(x.name, x)
end

- (Object) names



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

def names
  self.keys
end