X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/34d0bf15a6f4009de376ceed1d7d5cca24a8dfe7..803172831f77eea8c97c6141de1c1a9375c81ca1:/doc/Lyricli/SourceManager.html?ds=inline diff --git a/doc/Lyricli/SourceManager.html b/doc/Lyricli/SourceManager.html index 2f48f97..a8ddaa0 100644 --- a/doc/Lyricli/SourceManager.html +++ b/doc/Lyricli/SourceManager.html @@ -103,7 +103,20 @@
++Manages the different sources. SourceManager is in charge of enabling and +disabling them, as well as getting the current track. +
+ + ++Returns an array with the available sources. +
++Iterates over every source to attempt to retrieve the current song. +
++Disables a source. +
++Enables a source. +
++Adds a star to all members of the array that correspond to an active +source. +
+-A new instance of SourceManager. +Creates a new instance of SourceManager.
+Resets a source. +
+-A new instance of SourceManager +Creates a new instance of SourceManager
@@ -321,10 +353,6 @@ A new instance of SourceManager-6 -7 -8 -9 10 11 12 @@ -332,10 +360,14 @@ A new instance of SourceManager 14 15 16 -17+17 +18 +19 +20 +21
# File 'lib/lyricli/source_manager.rb', line 6 +# File 'lib/lyricli/source_manager.rb', line 10 def initialize @enabled_sources = [] @@ -345,7 +377,7 @@ A new instance of SourceManager current_source = klass.new @enabled_sources << current_source else - raise StartSourceException + raise Exceptions::StartSourceError end end end@@ -364,52 +396,105 @@ A new instance of SourceManager- - (Object) available_sources(format = false) + - (Array) available_sources(format = false) + + +
+++++Returns an array with the available sources. Optionally formats the result +so active sources are identified by an appended * +
+ + +