Class: Rsssf::Schedule
- Inherits:
-
Object
- Object
- Rsssf::Schedule
- Defined in:
- lib/rsssf/schedule.rb
Instance Method Summary collapse
-
#initialize(txt) ⇒ Schedule
constructor
attr_accessor :rounds # track no of rounds - why? why not?.
- #save(path, header:) ⇒ Object
Constructor Details
#initialize(txt) ⇒ Schedule
attr_accessor :rounds # track no of rounds - why? why not?
9 10 11 12 13 |
# File 'lib/rsssf/schedule.rb', line 9 def initialize( txt ) @txt = txt ## @rounds = nil # undefined end |
Instance Method Details
#save(path, header:) ⇒ Object
16 17 18 |
# File 'lib/rsssf/schedule.rb', line 16 def save( path, header: ) write_text( path, header + @txt ) end |