lib/songbook/generate_song_file.rb in songbook-0.5.0 vs lib/songbook/generate_song_file.rb in songbook-0.5.1

- old
+ new

@@ -25,17 +25,14 @@ 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'], - table_width: table_width + lyrics: song_data['lyrics'] ) end def song_data @song_data ||= YAML.load_file(input_path)