X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/34d0bf15a6f4009de376ceed1d7d5cca24a8dfe7..2677b890a58ffaccf47f54615cd3ae6715586ab8:/doc/Lyricli/SourceManager.html?ds=sidebyside diff --git a/doc/Lyricli/SourceManager.html b/doc/Lyricli/SourceManager.html index 2f48f97..3a37bc4 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 = [] @@ -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 * +
+ + +