lib/songbook/generate_song_file.rb in songbook-0.3.1 vs lib/songbook/generate_song_file.rb in songbook-0.4.0

- old
+ new

@@ -25,14 +25,17 @@ def song_text @song_text ||= RenderSong.new(song).call end def song + table_width = song_data['config']['table_width'] if song_data['config'] + @song ||= Song.new( title: File.basename(input_path, '.yml'), details: song_data['details'], chords: song_data['chords'], - lyrics: song_data['lyrics'] + lyrics: song_data['lyrics'], + table_width: table_width ) end def song_data @song_data ||= YAML.load_file(input_path)