Method: ModelScope::Runner#run

Defined in:
lib/modelscope/runner.rb

#runObject



18
19
20
21
22
23
24
25
26
# File 'lib/modelscope/runner.rb', line 18

def run
  if @kind == :report
    [:callbacks, :validations].map do |ckind|
      generate_report(collect_callbacks(ckind), ckind)
    end.join("\n\n")
  else
    generate_report(collect_callbacks(@kind), @kind)
  end
end