Class: ReadingList::TemplateFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/reading_list/factories/template_factory.rb

Instance Method Summary collapse

Instance Method Details

#load(template) ⇒ Object



3
4
5
# File 'lib/reading_list/factories/template_factory.rb', line 3

def load(template)
  IO.read(File.expand_path("../resources/templates/#{template}", __dir__))
end