Class: SimpleBioC::Location
- Inherits:
-
Object
- Object
- SimpleBioC::Location
- Defined in:
- lib/simple_bioc/location.rb
Instance Attribute Summary collapse
-
#annotation ⇒ Object
readonly
Returns the value of attribute annotation.
-
#length ⇒ Object
Returns the value of attribute length.
-
#offset ⇒ Object
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(parent) ⇒ Location
constructor
A new instance of Location.
- #to_s ⇒ Object
Constructor Details
#initialize(parent) ⇒ Location
Returns a new instance of Location.
6 7 8 9 10 |
# File 'lib/simple_bioc/location.rb', line 6 def initialize(parent) @infons = {} @locations = [] @annotation = parent end |
Instance Attribute Details
#annotation ⇒ Object (readonly)
Returns the value of attribute annotation.
4 5 6 |
# File 'lib/simple_bioc/location.rb', line 4 def annotation @annotation end |
#length ⇒ Object
Returns the value of attribute length.
3 4 5 |
# File 'lib/simple_bioc/location.rb', line 3 def length @length end |
#offset ⇒ Object
Returns the value of attribute offset.
3 4 5 |
# File 'lib/simple_bioc/location.rb', line 3 def offset @offset end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/simple_bioc/location.rb', line 12 def to_s "Location @#{offset}:#{length}" end |