Class: Testament::Report::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/testament/report.rb

Instance Method Summary collapse

Instance Method Details

#loadObject



14
15
16
17
18
# File 'lib/testament/report.rb', line 14

def load
  report_paths.each do |report_path|
    ::Kernel.load report_path
  end 
end

#report_namesObject



20
21
22
23
24
# File 'lib/testament/report.rb', line 20

def report_names
  report_paths.map do |report_path|
    report_path[/\w+(?=\.rb$)/]
  end
end