Class: Nitpick::MethodNitpicker
- Defined in:
- lib/nitpick/method_nitpicker.rb
Instance Attribute Summary
Attributes inherited from Nitpicker
Instance Method Summary collapse
Methods inherited from Nitpicker
#initialize, #nitpick!, #process_cfunc, #scan_for, #warn
Constructor Details
This class inherits a constructor from Nitpick::Nitpicker
Instance Method Details
#process_defn(exp) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/nitpick/method_nitpicker.rb', line 3 def process_defn(exp) # def foo(x); 1 end => # [:defn, :foo, [:scope, [:block, [:args, :x], [:lit, 1]]]] name, (_scope, (_block, (_argsym, *args), body)) = exp scan_for [Warnings::EmptyMethod], :with => [name, args, body] super end |