Class: Bio::CNLS::Result::NLS

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/cnls_screenscraper/cnls_screenscraper.rb

Direct Known Subclasses

BipartiteNLS, MonopartiteNLS

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#positionObject

Returns the value of attribute position.



21
22
23
# File 'lib/bio/cnls_screenscraper/cnls_screenscraper.rb', line 21

def position
  @position
end

#scoreObject

Returns the value of attribute score.



21
22
23
# File 'lib/bio/cnls_screenscraper/cnls_screenscraper.rb', line 21

def score
  @score
end

#sequenceObject

Returns the value of attribute sequence.



21
22
23
# File 'lib/bio/cnls_screenscraper/cnls_screenscraper.rb', line 21

def sequence
  @sequence
end

Instance Method Details

#<=>(another) ⇒ Object

sort by score descending



24
25
26
# File 'lib/bio/cnls_screenscraper/cnls_screenscraper.rb', line 24

def <=>(another)
  -(@score<=>another.score)
end