{"action":"closed","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/1351","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1351/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1351/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1351/events","html_url":"https://github.com/bbatsov/rubocop/issues/1351","id":44059770,"number":1351,"title":"Use snake_case for methods and variables","user":{"login":"jihwans","id":7252054,"avatar_url":"https://avatars.githubusercontent.com/u/7252054?v=3","gravatar_id":"","url":"https://api.github.com/users/jihwans","html_url":"https://github.com/jihwans","followers_url":"https://api.github.com/users/jihwans/followers","following_url":"https://api.github.com/users/jihwans/following{/other_user}","gists_url":"https://api.github.com/users/jihwans/gists{/gist_id}","starred_url":"https://api.github.com/users/jihwans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jihwans/subscriptions","organizations_url":"https://api.github.com/users/jihwans/orgs","repos_url":"https://api.github.com/users/jihwans/repos","events_url":"https://api.github.com/users/jihwans/events{/privacy}","received_events_url":"https://api.github.com/users/jihwans/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bbatsov/rubocop/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-09-26T13:15:09Z","updated_at":"2015-08-06T15:23:55Z","closed_at":"2015-08-06T15:23:55Z","body":"There are cases there you want to have module method with the same name as a class.\r\n\r\nHere's an example: - from Sequel project -\r\n\r\n~~~\r\nmodule Sequel\r\n  def self.Model(source) # RuboCop Complains here..\r\n   ...\r\n  end\r\n\r\n  class Model\r\n  ...\r\n  end\r\nend\r\n~~~\r\n\r\nHere, Sequel::Model is a class emitter hence the name that resembles the name of the class.\r\nThe class definition with same name is included in the file.\r\nI guess this should be allowed... ?\r\n"}}