Class: ListLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/dunmanifestin/list_loader.rb

Constant Summary collapse

DEFAULT_GENRE =
File.join(*%W(#{File.dirname(__FILE__)} .. .. default-genre))

Class Method Summary collapse

Class Method Details

.load(super_genre = '') ⇒ Object



9
10
11
12
# File 'lib/dunmanifestin/list_loader.rb', line 9

def load super_genre=''
  [DEFAULT_GENRE, (super_genre || '').split(":")]
    .flatten.compact.each(&method(:load_genre))
end