Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint/NestedMethodDefinition shouldn't be raised inside an eval block #2456

Closed
segiddins opened this issue Nov 26, 2015 · 1 comment
Closed

Comments

@segiddins
Copy link
Contributor

The following shouldn't cause any violations

class C
  def x
    C.class_eval do
      def y
      end
    end
  end
end
@alexdowad
Copy link
Contributor

Makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants