Class: Rsssf::Schedule

Inherits:
Object
  • Object
show all
Defined in:
lib/rsssf/schedule.rb

Instance Method Summary collapse

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