Class: Zubat::ReekWrapper
- Inherits:
-
Object
- Object
- Zubat::ReekWrapper
- Defined in:
- lib/zubat/reek_wrapper.rb
Constant Summary collapse
- Smell =
Data.define(:smell_type)
Instance Method Summary collapse
Instance Method Details
#examine(code) ⇒ Object
12 13 14 15 16 |
# File 'lib/zubat/reek_wrapper.rb', line 12 def examine(code) smells = Reek::Examiner.new(String.new(code)).smells smells.map { |smell| Smell.new(smell_type: smell.smell_type) } end |