Class: SampleReader::Sample
- Inherits:
-
Struct
- Object
- Struct
- SampleReader::Sample
- Defined in:
- lib/sample_reader.rb
Overview
Internal: Struct for holding sample information.
id - Sample id. index1 - Index1 sequence. index2 - Index2 sequence.
Examples
Sample.new("test1", "atcg", "gcta")
# => <Sample>
Returns Sample object.
Instance Method Summary collapse
-
#to_s ⇒ Object
Internal: Method that returns a String representaion of a Sample object.
Instance Method Details
#to_s ⇒ Object
Internal: Method that returns a String representaion of a Sample object.
Examples
Sample.to_s
# => "test\tATCG\tTCGA"
Returns a String with the values joined by “t”.
220 221 222 |
# File 'lib/sample_reader.rb', line 220 def to_s [id, index1, index2].join("\t") end |