lib/skeptic/rules/methods_per_class.rb in skeptic-0.0.0 vs lib/skeptic/rules/methods_per_class.rb in skeptic-0.0.1

- old
+ new

@@ -1,15 +1,17 @@ module Skeptic module Rules class MethodsPerClass + DESCRIPTION = 'Limit the number of methods per class' + include SexpVisitor def initialize(limit) @methods = Hash.new { |hash, key| hash[key] = [] } @limit = limit end - def apply_to(tokens, tree) + def apply_to(code, tokens, tree) visit tree self end def methods_in(class_name)