Module: JSHint4r::Reporter

Included in:
Compilation, Text
Defined in:
lib/jshint4r/reporter.rb,
lib/jshint4r/reporter/text.rb,
lib/jshint4r/reporter/compilation.rb

Defined Under Namespace

Classes: Compilation, Text

Instance Method Summary collapse

Instance Method Details

#key_symbolize(error) ⇒ Object

param

Hash error

return

Hash



13
14
15
16
17
# File 'lib/jshint4r/reporter.rb', line 13

def key_symbolize( error )
  Hash[*error.map { |k, v|
    [k.to_sym, v]
  }.flatten]
end