Class: Ensembl::Core::Gap
- Inherits:
-
Object
- Object
- Ensembl::Core::Gap
- Defined in:
- lib/bio-ensembl/core/slice.rb
Overview
The Gap class is similar to the Slice object, but describes a gap and therefore can easily be described by coordinate system and size.
Instance Attribute Summary collapse
-
#coord_system ⇒ Object
Returns the value of attribute coord_system.
-
#size ⇒ Object
(also: #length)
Returns the value of attribute size.
Instance Method Summary collapse
- #display_name ⇒ Object
-
#initialize(coord_system, size) ⇒ Gap
constructor
Create a new Gap object from scratch.
Constructor Details
#initialize(coord_system, size) ⇒ Gap
Create a new Gap object from scratch.
646 647 648 |
# File 'lib/bio-ensembl/core/slice.rb', line 646 def initialize(coord_system, size) @coord_system, @size = coord_system, size end |
Instance Attribute Details
#coord_system ⇒ Object
Returns the value of attribute coord_system.
634 635 636 |
# File 'lib/bio-ensembl/core/slice.rb', line 634 def coord_system @coord_system end |
#size ⇒ Object Also known as: length
Returns the value of attribute size.
634 635 636 |
# File 'lib/bio-ensembl/core/slice.rb', line 634 def size @size end |
Instance Method Details
#display_name ⇒ Object
651 652 653 |
# File 'lib/bio-ensembl/core/slice.rb', line 651 def display_name return @coord_system.name + ":gap:" + @size.to_s end |