Module: Mumukit::Inspection::Extension

Included in:
Css, Html, Source
Defined in:
lib/mumukit/inspection.rb

Instance Method Summary collapse

Instance Method Details

#new_inspection(match) ⇒ Object


8
9
10
11
12
13
14
15
# 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