Class: EhbrsRubyUtils::Music::LyricsBook
- Inherits:
-
Object
- Object
- EhbrsRubyUtils::Music::LyricsBook
show all
- Defined in:
- lib/ehbrs_ruby_utils/music/lyrics_book.rb,
lib/ehbrs_ruby_utils/music/lyrics_book/song.rb,
lib/ehbrs_ruby_utils/music/lyrics_book/album.rb,
lib/ehbrs_ruby_utils/music/lyrics_book/resource.rb
Defined Under Namespace
Classes: Album, Resource, Song
Constant Summary
collapse
- DEFAULT_PROVIDER_NAME =
'lyrics.com'
- DEFAULT_TITLE =
'Letras de músicas'
Instance Method Summary
collapse
Instance Method Details
#first_previous ⇒ Object
21
22
23
|
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 21
def first_previous
nil
end
|
25
26
27
|
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 25
def
1
end
|
#output ⇒ Object
29
30
31
|
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 29
def output
erb_template('main.html.erb')
end
|
#path ⇒ Object
33
34
35
|
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 33
def path
source_dir
end
|
#title ⇒ Object
37
38
39
|
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 37
def title
options[OPTION_TITLE].if_present(DEFAULT_TITLE)
end
|