X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/b434f05e58de158e651fbc83cead322f6a864d36..b2ac68932fa671151d3ab3115c565fa9ad06420c:/lib/lyricli.rb diff --git a/lib/lyricli.rb b/lib/lyricli.rb index 73c5811..e995c45 100755 --- a/lib/lyricli.rb +++ b/lib/lyricli.rb @@ -40,7 +40,7 @@ module Lyricli # @return [String] the fetched lyrics def self.lyrics @lyricli = Lyricli.new - @lyricli.get_lyrics + @lyricli.get_lyrics(@show_title) end # Returns the version of the library @@ -93,4 +93,9 @@ module Lyricli def self.root File.expand_path('../..',__FILE__) end + + # Sets the show_title instance variable so it requests the title + def self.show_title + @show_title = true + end end