Class: Sam::Header
- Inherits:
-
Object
- Object
- Sam::Header
- Defined in:
- lib/sam.rb
Defined Under Namespace
Classes: Record
Instance Attribute Summary collapse
-
#records ⇒ Object
readonly
Returns the value of attribute records.
Instance Method Summary collapse
-
#initialize(sam, lines) ⇒ Header
constructor
A new instance of Header.
- #output(f) ⇒ Object
Constructor Details
Instance Attribute Details
#records ⇒ Object (readonly)
Returns the value of attribute records.
35 36 37 |
# File 'lib/sam.rb', line 35 def records @records end |
Instance Method Details
#output(f) ⇒ Object
44 45 46 47 48 |
# File 'lib/sam.rb', line 44 def output f @records.each do |r| f.puts r end end |