Sha256: 6f127288dc2cb6576abc87c67151ddb045ec862fa3f0e9c97886fc4393630130

Contents?: true

Size: 414 Bytes

Versions: 8

Compression:

Stored size: 414 Bytes

Contents

# encoding: utf-8

module Rubocop
  module Cop
    # Common functionality for checking instance methods and singeton methods.
    module CheckMethods
      def on_def(node)
        method_name, args, body = *node
        check(node, method_name, args, body)
      end

      def on_defs(node)
        _scope, method_name, args, body = *node
        check(node, method_name, args, body)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubocop-0.20.1 lib/rubocop/cop/mixin/check_methods.rb
rubocop-0.20.0 lib/rubocop/cop/mixin/check_methods.rb
rubocop-0.19.1 lib/rubocop/cop/mixin/check_methods.rb
rubocop-0.19.0 lib/rubocop/cop/mixin/check_methods.rb
rubocop-0.18.1 lib/rubocop/cop/mixin/check_methods.rb
rubocop-0.18.0 lib/rubocop/cop/mixin/check_methods.rb
rubocop-0.17.0 lib/rubocop/cop/mixin/check_methods.rb
rubocop-0.16.0 lib/rubocop/cop/check_methods.rb