module Mumukit::Inspection::Extension

Public Instance Methods

new_inspection(match) click to toggle source
# File lib/mumukit/inspection.rb, line 8
def new_inspection(match)
  if match
    Mulang::Inspection.new match['type'],
                          Mulang::Inspection::Target.new(:unknown, match['target']),
                          negated: match['negation'].present?,
                          i18n_namespace: 'mumukit.inspection'
  end
end