X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/823e558b5cd2ec219d0fc7226c54f2ee7ad807d2..143d7aad53cdb6e15f17ef7d1a98981dac7140da:/doc/Lyricli.html?ds=inline diff --git a/doc/Lyricli.html b/doc/Lyricli.html index 8c0685a..d757eac 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. +
+ + +- Modules: Sources, Util + Modules: Exceptions, Sources, Util @@ -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+ |
+