X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/ad84791b951f4ebdfae9c6bf0a54244a8b5c8f16..34d0bf15a6f4009de376ceed1d7d5cca24a8dfe7:/doc/Lyricli.html diff --git a/doc/Lyricli.html b/doc/Lyricli.html index 8c0685a..8a09e7f 100644 --- a/doc/Lyricli.html +++ b/doc/Lyricli.html @@ -6,7 +6,7 @@
+The Lyricli module allows you to easily search for lyrics by looking for +song and artist data from diverse sources. +
+ + +@@ -116,7 +129,83 @@
+Disables a source via the Source Manager. +
++Enables a source via the Source Manager. +
++Creates a new Lyricli instance and returns lyrics by going through the +sources. +
++Resets all configuration for a source via the Source Manager. +
++Returns a list of the available sources to enable or disable. +
++Returns the version of the library. +
+
+ + + +56 +57 +58 +59+ |
+
+ # File 'lib/lyricli.rb', line 56 + +def self.disable(source_name) + source_manager = SourceManager.new + source_manager.disable(source_name) +end+ |
+
+Enables a source via the Source Manager +
+ + +
+ + + +50 +51 +52 +53+ |
+
+ # File 'lib/lyricli.rb', line 50 + +def self.enable(source_name) + source_manager = SourceManager.new + source_manager.enable(source_name) +end+ |
+
+Creates a new Lyricli instance and returns lyrics by going through the +sources. +
+ + +
-29 30 31 -32+32 +33 |
- # File 'lib/lyricli.rb', line 29 +# File 'lib/lyricli.rb', line 30 -def self.execute +def self.lyrics @lyricli = Lyricli.new @lyricli.get_lyrics end |
+Resets all configuration for a source via the Source Manager +
+ + +
+ + + +62 +63 +64 +65+ |
+
+ # File 'lib/lyricli.rb', line 62 + +def self.reset(source_name) + source_manager = SourceManager.new + source_manager.reset(source_name) +end+ |
+
+Returns a list of the available sources to enable or disable +
+ + +
+ + + +44 +45 +46 +47+ |
+
+ # File 'lib/lyricli.rb', line 44 + +def self.sources + source_manager = SourceManager.new + source_manager.available_sources(true).join(", ") +end+ |
+
+Returns the version of the library +
+ + +
+ + + +37 +38 +39+ |
+
+ # File 'lib/lyricli.rb', line 37 + +def self.version + Gem.loaded_specs["lyricli"].version +end+ |
+