X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/ad84791b951f4ebdfae9c6bf0a54244a8b5c8f16..34d0bf15a6f4009de376ceed1d7d5cca24a8dfe7:/doc/Lyricli/Lyricli.html diff --git a/doc/Lyricli/Lyricli.html b/doc/Lyricli/Lyricli.html index 6d8ed13..090262d 100644 --- a/doc/Lyricli/Lyricli.html +++ b/doc/Lyricli/Lyricli.html @@ -6,7 +6,7 @@ Class: Lyricli::Lyricli - — Documentation by YARD 0.8.1 + — Documentation by YARD 0.8.2.1 @@ -94,7 +94,7 @@
Defined in:
-
lib/lyricli.rb
+
lib/lyricli/lyricli.rb
@@ -262,12 +262,12 @@ A new instance of Lyricli
 
 
-36
-37
-38
+4 +5 +6 -
# File 'lib/lyricli.rb', line 36
+      
# File 'lib/lyricli/lyricli.rb', line 4
 
 def initialize
   @source_manager = SourceManager.new
@@ -299,13 +299,13 @@ A new instance of Lyricli
       
 
 
-61
-62
-63
-64
+29 +30 +31 +32
-
# File 'lib/lyricli.rb', line 61
+      
# File 'lib/lyricli/lyricli.rb', line 29
 
 def check_params
   self.exit_with_error if @current_track[:artist].nil? or @current_track[:artist].empty?
@@ -325,21 +325,43 @@ A new instance of Lyricli
   
 
   
-
+
+
+ + +
+
+
+ +

Raises:

+
    + +
  • + + + (InvalidLyrics) + + + +
  • + +
+ +
@@ -361,21 +383,21 @@ A new instance of Lyricli
 
 
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
+12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23
 
 
-40
-41
-42
+8 +9 +10
-
# File 'lib/lyricli.rb', line 40
+      
# File 'lib/lyricli/lyricli.rb', line 8
 
 def exit_with_error
-  abort "Usage: #{$0} artist song"
+  raise InvalidLyrics
 end
-
# File 'lib/lyricli.rb', line 44
+      
# File 'lib/lyricli/lyricli.rb', line 12
 
 def get_lyrics
   set_current_track
@@ -409,12 +431,12 @@ A new instance of Lyricli
       
 
 
-57
-58
-59
+25 +26 +27
-
# File 'lib/lyricli.rb', line 57
+      
# File 'lib/lyricli/lyricli.rb', line 25
 
 def set_current_track
   @current_track = @source_manager.current_track
@@ -429,9 +451,9 @@ A new instance of Lyricli