This repository has been archived by the owner. It is now read-only.

Add module_function to Module methods #162

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@mckern
Copy link
Contributor

mckern commented Jan 15, 2016

ruby-lint reports "undefined method module_function" when using module_function. The Ruby style guide recommends using module_function instead of extend self or class << self to turn instance methods into class methods.

Add module_function to known Module methods
ruby-lint reports `"undefined method module_function` when using
'module_function'. The Ruby style guide
(https://github.com/bbatsov/ruby-style-guide) recommends using
'module_function' instead of 'extend self' or 'class << self'
to turn instance methods into class methods.
@YorickPeterse

This comment has been minimized.

Copy link
Owner

YorickPeterse commented Jan 22, 2016

Test failures are unrelated (fixed in master). Rebased into ff40b7d, thanks!

@YorickPeterse

This comment has been minimized.

Copy link
Owner

YorickPeterse commented Jan 22, 2016

This has been released as ruby-lint 2.1.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.