Method: Nitpick::MethodNitpicker#process_defn
- Defined in:
- lib/nitpick/method_nitpicker.rb
#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 |