Class: Bio::NeXML::Row

Inherits:
Object
  • Object
show all
Includes:
Mapper
Defined in:
lib/bio/db/nexml/matrix.rb

Direct Known Subclasses

CellRow, SeqRow

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mapper

#properties

Constructor Details

#initialize(id, options = {}) ⇒ Row

Returns a new instance of Row.



657
658
659
660
661
# File 'lib/bio/db/nexml/matrix.rb', line 657

def initialize( id, options = {} )
  @id = id
  properties( options ) unless options.empty?
  block.arity < 1 ? instance_eval( &block ) : block.call( self ) if block_given?
end

Instance Attribute Details

#idObject

A file level unique identifier.



648
649
650
# File 'lib/bio/db/nexml/matrix.rb', line 648

def id
  @id
end

#labelObject

A human readable description.



651
652
653
# File 'lib/bio/db/nexml/matrix.rb', line 651

def label
  @label
end