javichito/Lyricfy

View on GitHub
lib/lyricfy/song.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Lyricfy
  class Song
    attr_accessor :title, :author, :lines

    def initialize(title, author, lines)
      self.title  = title
      self.author = author
      self.lines  = lines
    end

    def body(separator = '\n')
      lines.join(separator)
    end
  end
end