Class: EhbrsRubyUtils::Music::LyricsBook

Inherits:
Object
  • Object
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_previousObject



21
22
23
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 21

def first_previous
  nil
end

#header_indexObject



25
26
27
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 25

def header_index
  1
end

#outputObject



29
30
31
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 29

def output
  erb_template('main.html.erb')
end

#pathObject



33
34
35
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 33

def path
  source_dir
end

#titleObject



37
38
39
# File 'lib/ehbrs_ruby_utils/music/lyrics_book.rb', line 37

def title
  options[OPTION_TITLE].if_present(DEFAULT_TITLE)
end